Usage
$wsOn[;;;] Also callable as
$websocketOn Arguments
| Name | Type | Required | Description |
|---|---|---|---|
websocket ID | Number | Yes | The id of the websocket to attach this listener to |
listener name | String | Yes | The name of the event to listen to |
callback | String | Yes | The code to execute every time this event is fired |
...params | String | Yes | The arguments that will contain the data of the event that was sent |