Constructor
new CommunicatorBackend(self, listener)
Responsible in the Web Worker for communicating with the client
Parameters:
Name | Type | Description |
---|---|---|
self |
The self variable which is set in the web worker environment | |
listener |
The listener has to call "ready" if the results are available |
- Source:
Methods
broadcast(action, result)
Sends a broadcast to all registered listeners
Parameters:
Name | Type | Description |
---|---|---|
action |
String | |
result |
object |
- Source:
- See:
-
- Communicator#subscribe
- Communicator#unsubscribe