Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewContainer ¶
func NewContainer(addr string, apps ...WebsocketApplication) scene.ApplicationContainer
func NewFactory ¶
func NewFactory(mux WebsocketMux) scene.ApplicationFactory[WebsocketApplication]
Types ¶
type WebsocketApplication ¶
type WebsocketApplication interface {
scene.Application
Prefix() string
Create(mux WebsocketMux) error
}
type WebsocketHandler ¶
type WebsocketHandler func(conn *websocket.Conn, clos func()) WebsocketMessageHandler
type WebsocketMessageHandler ¶
type WebsocketMux ¶
type WebsocketMux interface {
http.Handler
HandleFunc(pattern string, handler WebsocketHandler)
UsePrefix(pattern string) WebsocketMux
}
func NewWebSocketMux ¶
func NewWebSocketMux() WebsocketMux
Click to show internal directories.
Click to hide internal directories.