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
}
type ClientMessageHandler ¶
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
The Hub maintain all web socket clients. When started (using Run()), the Hub will pass messages from the message channel to the corresponding recipient. The SendTo() func can be used to place messages on the message channel.
type WsEndpoint ¶
type WsEndpoint struct {
// contains filtered or unexported fields
}
func NewEndpoint ¶
func NewEndpoint(authFunc AuthFunc, hub *Hub, handler WsHandler, origins []string) *WsEndpoint
func (*WsEndpoint) ServeHTTP ¶
func (e *WsEndpoint) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.