Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
Connection is a representation of the websocket connection.
type PubSubServer ¶
type PubSubServer struct {
// contains filtered or unexported fields
}
PubSubServer maintains the set of active clients and sends messages to the clients.
func (*PubSubServer) Publish ¶
func (s *PubSubServer) Publish(channel string, msg interface{})
Publish ...
func (*PubSubServer) ServeHTTP ¶
func (s *PubSubServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.