Versions in this module Expand all Collapse all v1 v1.0.3 Apr 9, 2020 Changes in this version type EmitMessage + JWT string v1.0.2 Mar 26, 2020 Changes in this version + const MESSAGE + const PUBLISH_ROOM + const REGISTER_SOCKET + const SUBSCRIBE_TO_ROOM + const UNPUBLISH_ROOM + const UNSUBSCRIBE_FROM_ROOM + func Connect(ws *WebSocket) + type BroadcastMessage struct + Channel string + Payload interface{} + Room string + SocketID string + Type int + type ClientMessage struct + Channel string + Payload interface{} + Room string + SocketID string + Type int + type EmitMessage struct + Channel string + Payload interface{} + SocketID string + Type int + type Socket struct + Conn *websocket.Conn + Rooms map[string]bool + Send chan []byte + SocketID string + WebSocket *WebSocket + type WebSocket struct + func Create() *WebSocket + func (ws *WebSocket) Broadcast(bms *BroadcastMessage) + func (ws *WebSocket) Emit(ems *EmitMessage) + func (ws *WebSocket) Listen() + func (ws *WebSocket) On(channel string, handler handlerFunc)