Properties:
Name | Type | Argument | Description |
---|---|---|---|
key |
String |
<optional> |
Subcriber ID. |
onmessage |
function |
<optional> |
An event listener to be called when a message is received from the server. |
onerror |
function |
<optional> |
An event listener to be called when an error occurs. |
onclose |
function |
<optional> |
An event listener to be called when the connection is closed. |