README ¶ Description: Fire custom events using sockets and the standard .On() listener Connect to the websocket ws://localhost:3000/ws/<user-id> Message object example { "from": "<user-id>", "to": "<recipient-user-id>", "event": "CUSTOM_EVENT", "data": "hello" } Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type MessageObject Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type MessageObject ¶ type MessageObject struct { Data string `json:"data"` From string `json:"from"` Event string `json:"event"` To string `json:"to"` } MessageObject Basic chat message object Source Files ¶ View all Source files main.go Click to show internal directories. Click to hide internal directories.