Constructs the singleton Broadcaster
our message listeners
the WebSocket connection
the singleton Broadcaster
Adds a listener to get ws messages
the type of message to subscribe to
the function to call on hit
the data to filter by
the id of the newly created listener
Broadcasts a message to the ws connection
the message to send.
send as raw data or stringified. defaults to stringified
Returns the state associated to this broadcaster instance
Main callback for every messages received via websocket. Checks against listeners and callsback.
the message received
Removes a Listener
the id given by AddListener
Sets the WS once connected and starts listening
the ws to spectrum
Test between two objects
Returns the singleton instance of the Broadcaster
The instance
Generated using TypeDoc
Broadcaster
Handles the broadcast of every WS messages
Broadcaster