Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an middleman between the websocket connection and the router.
type Router ¶
type Router struct { // Inbound messages from the clients. Incoming chan []byte // Outgoing messages to the clients. Outgoing chan []byte // contains filtered or unexported fields }
Router maintains the set of active clients and sends and receives messages to/from the clients.
Click to show internal directories.
Click to hide internal directories.