add websockettextmessagesender |
m fix types |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
|Inputs= | |Inputs= | ||
[ | [ | ||
{"Name":"*", "Type":" | {"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":" | {"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]]) === | ||
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 | The data to be sent to the server. | ||
== Outputs == | == Outputs == | ||
=== OnSendStart === | === OnSendStart ([[Impulses#ASync|SyncResumption]] (Async))=== | ||
An [[ | An [[Impulses#ASync |Async impulse]] that is triggered when starting the send the data. | ||
=== OnSent === | === OnSent === | ||
A [[ | A [[Impulses | continuation impulse]] triggered when the data is sent successfully. | ||
=== OnSendError === | === OnSendError ([[Impulses |Continuation]])=== | ||
A [[ | 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
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.