ProtoFlux:Websocket Connection Events: Difference between revisions

From Resonite Wiki
add websocketconnectionevents
 
m fix types
 
(3 intermediate revisions by 2 users not shown)
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 ===
=== OnConnected ([[Impulses |Call]])===


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


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


An [[Impulse | 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 ==


=== Client ===
=== Client ([[WebsocketClient (Component) |WebsocketClient]]) ===


A [[WebsocketClient (Component) | WebSocketClient]] component.
A [[WebsocketClient (Component) | WebSocketClient]] component.


[[Category:ProtoFlux:Network:Websockets]]
[[Category:ProtoFlux:Network:Websockets]]

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.