Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SafeWebSocket ¶
type SafeWebSocket struct { Conn *websocket.Conn SendChannel chan *WebSocketSendingMessage OnRecvMessage func(ws *SafeWebSocket, messageType int, data []byte) OnClose func() }
safe websocket
func NewSafeWebSocket ¶
func NewSafeWebSocket(conn *websocket.Conn, OnRecvMessage func(ws *SafeWebSocket, messageType int, data []byte), onClose func()) *SafeWebSocket
func (*SafeWebSocket) Close ¶
func (ws *SafeWebSocket) Close()
type WebSocketSendingMessage ¶
Click to show internal directories.
Click to hide internal directories.