Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
Hub manages WebSocket client connections and broadcasts events.
func (*Hub) Add ¶
func (h *Hub) Add(conn *websocket.Conn, cancel context.CancelFunc)
Add registers a client connection.
Click to show internal directories.
Click to hide internal directories.