package
Version:
v0.0.0-...-2c08a0f
Opens a new window with list of versions in this module.
Published: Apr 29, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Broker is responsible to broadcast messages to the websocket pipes.
New starts a new websocket message broadcaster.
func (b *Broker) Broadcast(msg interface{})
Broadcast dispatches the messages to the websocket subscribers.
func (b *Broker) Subscribe(f func(msg interface{})) (unsubscribe func())
Subscribe registers a websocket listener.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.