Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.WebSocket:__newindex

C๐Ÿท๏ธ WebSocket

Part of StarfallEx namespace

๐Ÿ”— External
WebSocket:__newindex(k, v)
View on GitHub|lua/starfall/libs_cl/websocket.lua:166
๐Ÿ“‹ 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

NameTypeDescription
kstringonMessage, onConnected, onDisconnected
vfunctionThe 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.