Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebSocketServer ¶
type WebSocketServer struct {
// contains filtered or unexported fields
}
func NewWebSocketServer ¶
func NewWebSocketServer() *WebSocketServer
func (*WebSocketServer) SetConnCloseGameHandler ¶
func (s *WebSocketServer) SetConnCloseGameHandler(ccgHandler func(string))
Set handler for connection closed by user
func (*WebSocketServer) SetMessageHandler ¶
func (s *WebSocketServer) SetMessageHandler(msgHandler func(*websocket.Conn, *Message, *string))
Set message handler for incoming websocket message
Click to show internal directories.
Click to hide internal directories.