Documentation ¶
Index ¶
- type Client
- type Hub
- func (hub *Hub) Broadcast(message interface{}, ignore *Client)
- func (hub *Hub) HandleWebSocket(w http.ResponseWriter, r *http.Request)
- func (hub *Hub) OnConnect(client *Client)
- func (hub *Hub) OnDisconnect(client *Client)
- func (hub *Hub) OnMessage(data []byte, client *Client)
- func (hub *Hub) Run()
- func (hub *Hub) Send(message interface{}, client *Client)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hub ¶
func (*Hub) HandleWebSocket ¶
func (hub *Hub) HandleWebSocket(w http.ResponseWriter, r *http.Request)
func (*Hub) OnDisconnect ¶
Click to show internal directories.
Click to hide internal directories.