ProtoFlux:Websocket Text Message Sender: Difference between revisions

From Resonite Wiki
add websockettextmessagesender
 
m fix types
 
(3 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 ==


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


A [[Pulse | pulse]] to trigger the node.
An [[Impulses|Call]] to trigger the node.


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


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


=== Data ===
=== Data ([[Type:String|String]])===


The data to be sent to the server, as a [[Types:String | string]].
The data to be sent to the server.


== Outputs ==
== Outputs ==


=== OnSendStart ===
=== 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 ===
=== 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.