Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // The websocket connection. Conn *websocket.Conn // Buffered channel of outbound messages. Send chan *ws.PreparedMessage // Buffered channel of inbound messages. Recv chan []byte // Channel to signal the termination of client Done chan struct{} // The hub. Hub *Hub // The client's ID. ID string // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.