Documentation ¶
Index ¶
Constants ¶
View Source
const ( ON_HAND_SHAKE = "handshake" ON_OPEN = "open" ON_MESSAGE = "message" ON_CLOSE = "close" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OnHandshake ¶
type OnHandshake = func(ser *websocket2.WsServer, upgrader *websocket.FastHTTPUpgrader)
type OnMessage ¶
type OnMessage = func(ser *websocket2.WsServer, data []byte)
type OnOpen ¶
type OnOpen = func(ser *websocket2.WsServer)
type Websocket ¶
type Websocket interface { OnHandshake(ser *websocket2.WsServer, upgrader *websocket.FastHTTPUpgrader) OnOpen(ser *websocket2.WsServer) OnMessage(ser *websocket2.WsServer, data []byte) OnClose(ser *websocket2.WsServer, code int, text string) }
Click to show internal directories.
Click to hide internal directories.