package
Version:
v0.0.0-...-691b052
Opens a new window with list of versions in this module.
Published: May 7, 2018
License: Apache-2.0, Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
WEBSOCKET
Send event received over a ws connection to connected clients
Synopsys
SETTING |
TYPE |
REQUIRED |
DEFAULT VALUE |
Codec |
codec |
false |
"json" |
Uri |
string |
false |
"wsout" |
Details
Codec
- Value type is codec
- Default value is
"json"
The codec used for outputed data.
Uri
- Value type is string
- Default value is
"wsout"
URI path
Configuration blueprint
websocket{
codec => "json"
uri => "wsout"
}
Documentation
¶
Code generated by "bitfanDoc "; DO NOT EDIT
Send event received over a ws connection to connected clients
expose events thought a websocket
Client is a middleman between the websocket connection and the hub.
type Hub struct {
Broadcast chan []byte
Wellcome func() [][]byte
}
hub maintains the set of active clients and Broadcasts messages to the
clients.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.