Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServWs ¶
func ServWs(hub *Hub, w http.ResponseWriter, r *http.Request)
ServWs handles websocket requests from the peer.
func ServerHome ¶
func ServerHome(w http.ResponseWriter, r *http.Request)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a middleman between the websocket connection and the hub.
Click to show internal directories.
Click to hide internal directories.