Part of StarfallEx namespace
๐ External
WebSocket:__newindex(k, v)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
Description
Sets a callback for the websocket. Can be used with the following callbacks: * onMessage - Called when a message is received. * onConnected - Called when the websocket initially connects. * onDisconnected - Called when the websocket is disconnected, with the only param being if it was caused by an 'error' event.
Parameters
| Name | Type | Description |
|---|---|---|
k | string | onMessage, onConnected, onDisconnected |
v | function | The callback function, which will be called with the websocket as the first argument. |
Returns
No return values documented.
Examples
No examples available.
Used In
No usages found in the codebase.