Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bus ¶
type Bus struct { // State changed. Notify chan []byte // Register requests from the clients. Register chan *Client // Unregister requests from clients. Unregister chan *Client // contains filtered or unexported fields }
Hub maintains the set of active clients and broadcasts states to the clients.
Click to show internal directories.
Click to hide internal directories.