ProtoFlux:Websocket Text Message Sender: Difference between revisions

From Resonite Wiki
m fix type links
m fix types
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
|Inputs=
|Inputs=
[
[
{"Name":"*", "Type":"Impulse"},
{"Name":"*", "Type":"Call"},
{"Name":"Client", "Type":"WebsocketClient"},
{"Name":"Client", "Type":"WebsocketClient"},
{"Name":"Data", "Type":"String"}
{"Name":"Data", "Type":"String"}
Line 10: Line 10:
|Outputs=
|Outputs=
[
[
{"Name":"OnSendStart", "Type":"AsyncImpulse"},
{"Name":"OnSendStart", "Type":"SyncResumption"},
{"Name":"OnSent", "Type":"Continuation"},
{"Name":"OnSent", "Type":"Continuation"},
{"Name":"OnSendError", "Type":"Continuation"}
{"Name":"OnSendError", "Type":"Continuation"}
Line 20: Line 20:
== Inputs ==
== Inputs ==


=== * ([[Impulse|impulse]]) ===
=== * ([[Impulses|Call]]) ===


An [[Impulse|impulse]] to trigger the node.
An [[Impulses|Call]] to trigger the node.


=== Client ([[WebsocketClient (Component) |WebsocketClient]])===
=== Client ([[WebsocketClient (Component) |WebsocketClient]])===
Line 34: Line 34:
== Outputs ==
== Outputs ==


=== OnSendStart ([[Impulse#Async|ASync Impulse]])===
=== OnSendStart ([[Impulses#ASync|SyncResumption]] (Async))===


An [[Impulse#Async | async impulse]] triggered when starting the send the data.
An [[Impulses#ASync |Async impulse]] that is triggered when starting the send the data.


=== OnSent ===
=== OnSent ===


A [[Impulse | continuation impulse]] triggered when the data is sent successfully.
A [[Impulses | continuation impulse]] triggered when the data is sent successfully.


=== OnSendError ([[Impulse |Continuation]])===
=== OnSendError ([[Impulses |Continuation]])===


A [[Impulse | continuation impulse]] triggered when the data couldn't be sent.
A [[Impulses |Continuation]] that is triggered when the data couldn't be sent.


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

Latest revision as of 21:28, 9 February 2024

Websocket Text Message Sender
*
OnSendStart
Client
OnSent
Data
OnSendError
Websockets

This node allows you to send text messages to a WebSocket server via a WebSocketClient.

Inputs

* (Call)

An Call to trigger the node.

Client (WebsocketClient)

A WebSocketClient component.

Data (String)

The data to be sent to the server.

Outputs

OnSendStart (SyncResumption (Async))

An Async impulse that is triggered when starting the send the data.

OnSent

A continuation impulse triggered when the data is sent successfully.

OnSendError (Continuation)

A Continuation that is triggered when the data couldn't be sent.