ProtoFlux:Websocket Text Message Sender: Difference between revisions

From Resonite Wiki
add websockettextmessagesender
 
m fix type links
Line 20: Line 20:
== Inputs ==
== Inputs ==


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


A [[Pulse | pulse]] to trigger the node.
An [[Impulse|impulse]] 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 ([[Impulse#Async|ASync Impulse]])===


An [[Impulse#Async | async impulse]] triggered when starting the send the data.
An [[Impulse#Async | async impulse]] triggered when starting the send the data.
Line 42: Line 42:
A [[Impulse | continuation impulse]] triggered when the data is sent successfully.
A [[Impulse | continuation impulse]] triggered when the data is sent successfully.


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


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


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

Revision as of 19:05, 15 January 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

* (impulse)

An impulse to trigger the node.

Client (WebsocketClient)

A WebSocketClient component.

Data (String)

The data to be sent to the server.

Outputs

OnSendStart (ASync Impulse)

An async impulse triggered when starting the send the data.

OnSent

A continuation impulse triggered when the data is sent successfully.

OnSendError (Continuation)

A continuation impulse triggered when the data couldn't be sent.