package
module
Version:
v0.0.0-...-d12a2ae
Opens a new window with list of versions in this module.
Published: Feb 1, 2015
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
sock
Hub of web socket connections. Borrowed from gorilla websocket chat example.
Documentation
¶
Conn is an middleman between the websocket connection and the hub.
Hub maintains the set of active connections and broadcasts messages to the connections.
NewHub creates new instance of Hub
func (h *Hub) Send(payload interface{})
Send broadcast message to all connections
Serve handles websocket requests from the peer.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.