fixed links to impulses |
m fix types |
||
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| | === * ([[Impulses|Call]]) === | ||
An [[Impulses| | An [[Impulses|Call]] to trigger the node. | ||
=== Client ([[WebsocketClient (Component) |WebsocketClient]])=== | === Client ([[WebsocketClient (Component) |WebsocketClient]])=== | ||
Line 34: | Line 34: | ||
== Outputs == | == Outputs == | ||
=== OnSendStart ([[Impulses#ASync| | === OnSendStart ([[Impulses#ASync|SyncResumption]] (Async))=== | ||
An [[Impulses#ASync | | An [[Impulses#ASync |Async impulse]] that is triggered when starting the send the data. | ||
=== OnSent === | === OnSent === | ||
Line 44: | Line 44: | ||
=== OnSendError ([[Impulses |Continuation]])=== | === OnSendError ([[Impulses |Continuation]])=== | ||
A [[Impulses | | 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.