Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
NewManager builds one hub per CPU for WS fanout.
func (*Manager) ServeWS ¶
func (m *Manager) ServeWS(w http.ResponseWriter, r *http.Request)
ServeWS upgrades to WS and binds each client to one hub. Also starts RW pumps per client.
Click to show internal directories.
Click to hide internal directories.