Documentation ¶
Index ¶
Constants ¶
View Source
const ( DomainHeader = "X-TNL-DOMAIN" WebSocketPath = "/__ws__" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
Hub maintains the set of active clients and broadcasts messages to the clients.
func (*Hub) GetClientForDomain ¶
Click to show internal directories.
Click to hide internal directories.