Documentation
¶
Index ¶
- Constants
- type WsServer
- func (server *WsServer) Close()
- func (server *WsServer) GetConnections() []*websocket.Conn
- func (server *WsServer) GetRequest(con *websocket.Conn) *http.Request
- func (server *WsServer) OnClose(fun func(conn *websocket.Conn))
- func (server *WsServer) OnConnect(fun func(connection *websocket.Conn))
- func (server *WsServer) OnDisConnect(fun func(connection *websocket.Conn))
- func (server *WsServer) OnError(fun func(err error))
- func (server *WsServer) OnMessage(fun func(connection *websocket.Conn, message string))
- func (server *WsServer) OnStart(fun func())
- func (server *WsServer) Start(port int, url string, debug bool, reusePort bool)
- func (server *WsServer) StartWithServerMux(port int, url string, debug bool, serverMux *http.ServeMux)
Constants ¶
View Source
const OnClose string = "on_tcp_close"
View Source
const OnConnect string = "on_tcp_connect"
View Source
const OnDisConnect string = "on_tcp_disconnect"
View Source
const OnError string = "on_tcp_err"
View Source
const OnMessage string = "on_tcp_message"
View Source
const OnStart string = "on_tcp_start"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.