Versions in this module Expand all Collapse all v1 v1.0.0 Nov 20, 2021 Changes in this version + func Uuid() string + type Connection struct + Channel string + ConnId string + type Hub struct + MaxMessageSize int64 + PingPeriod time.Duration + PongWait time.Duration + Upgrader *websocket.Upgrader + WriteWait time.Duration + func Init() *Hub + func (h *Hub) Listen(c *Connection, messageHandler func(messageType int, message []byte)) error + func (h *Hub) Open(channel string, res http.ResponseWriter, req *http.Request) (*Connection, error) + func (h *Hub) RemoveConn(c *Connection) + func (h *Hub) SetDefault() + func (h *Hub) WriteOnChannel(channel string, message []byte) + func (h *Hub) WriteOnConn(c *Connection, messageType int, message []byte) error