ProtoFlux:Websocket Connection Events: Difference between revisions

From Resonite Wiki
m fixed link to impulses
m fix types
 
Line 4: Line 4:
|Outputs=
|Outputs=
[
[
{"Name":"OnConnected", "Type":"Impulse"},
{"Name":"OnConnected", "Type":"Call"},
{"Name":"OnDisconnected", "Type":"Impulse"}
{"Name":"OnDisconnected", "Type":"Call"}
]
]
|Globals=
|Globals=
Line 17: Line 17:
== Outputs ==
== Outputs ==


=== OnConnected ([[Impulses |impulse]])===
=== OnConnected ([[Impulses |Call]])===


An [[Impulses | impulse]] triggered on a connection to the WebSocket server.
An [[Impulses | Call]] triggered on a connection to the WebSocket server.


=== OnDisconnected ([[Impulses |impulse]])===
=== OnDisconnected ([[Impulses |Call]])===


An [[Impulses | impulse]] triggered when the connection to the WebSocket server is cut.
An [[Impulses | Call]] triggered when the connection to the WebSocket server is cut.


== Globals ==
== Globals ==

Latest revision as of 21:26, 9 February 2024

Websocket Connection Events
OnConnected
OnDisconnected
Client
null
Websockets

This node will allow you do detect when a WebSocket client is connected or disconnected.

Outputs

OnConnected (Call)

An Call triggered on a connection to the WebSocket server.

OnDisconnected (Call)

An Call triggered when the connection to the WebSocket server is cut.

Globals

Client (WebsocketClient)

A WebSocketClient component.