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 maintains the set of active connections and broadcasts messages to the connections.
func (*Hub) BroadcastRoom ¶
BroadcastRoom sends a message to everyone in a room.
Click to show internal directories.
Click to hide internal directories.