The interface for the emitted events communications. This will automatically connect to the web socket server if no connection
- Source:
Methods
(static) emit(event, message)
Emits an event to the server with provided message
Parameters:
Name | Type | Description |
---|---|---|
event |
string | The name of the event to emit |
message |
string | object | The message to send |
- Source:
(static) on(event, handler)
Listens for provided server side emitted events
Parameters:
Name | Type | Description |
---|---|---|
event |
string | The name of the server side emitted event |
handler |
function | The handler for the server side emitted event |
- Source:
Throws:
Invalid handler exception