Sign In

$wsOn[]

Attach a listener to a websocket

v1.5.0+ Requires Brackets

Usage

$wsOn[;;;]
Also callable as
$websocketOn

Arguments

NameTypeRequiredDescription
websocket ID
NumberYesThe id of the websocket to attach this listener to
listener name
StringYesThe name of the event to listen to
callback
StringYesThe code to execute every time this event is fired
...params
StringYesThe arguments that will contain the data of the event that was sent

Was this page helpful?