Versions in this module Expand all Collapse all v0 v0.0.3 Feb 4, 2021 v0.0.2 Feb 3, 2021 Changes in this version + func BroadcastMessage(msg string) + func HandleWebSocketCommand(cmd, usage string, handler func(c *WebsocketConnection, array []string)) + func InitWebSocket() + func ServeWs(w http.ResponseWriter, r *http.Request) + type Hub struct + type MsgType string + const ConfigMessage + const PrivateMessage + const PublicMessage + type WebsocketConnection struct + func (c *WebsocketConnection) Broadcast(msg string) + func (c *WebsocketConnection) WriteMessage(t MsgType, msg string) error + func (c *WebsocketConnection) WritePrivateMessage(msg string) error + type WebsocketHandlerFunc func(c *WebsocketConnection, array []string)