Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { //User id for client Id string // contains filtered or unexported fields }
Client is a middleman between the websocket connection and the hub.
type Hub ¶
type Hub struct { // Emit message for particular client Emit chan *Emitter // contains filtered or unexported fields }
hub maintains the set of active clients and broadcasts messages to the clients.
func (*Hub) GetClientCount ¶
Click to show internal directories.
Click to hide internal directories.