Skip to content

Connections and streams

These actions come in families of two or three: connect, send, close. The connection stays open between the boxes, which lets you interleave other calls in the middle.

A connect action has two outputs:

OutputEmission
connectedA signal, once, when the connection is established
messageOne emission per message received

It carries a connection name (connectionName). The send and close actions then designate that connection by its box identifier (connectionNodeId).

The classic pattern:

Connexion MQTT ──connected──► Requête HTTP (déclencher l'action métier)
└────────message─────► Assert (le message attendu est arrivé)
puis ──► Fermeture connexion MQTT
ActionInputsOutputs
WebSocket connect—connected, message (any frame received)
WebSocket sendpayload—
WebSocket connection close——
WebSocket server close——

See WebSocket.

ActionInputsOutputs
Socket.IO connect—connected, one event:<name> port per declared event, and others
Socket.IO sendchannel, payload—
Socket.IO connection close——
Socket.IO server close——

This is the only connect action whose outputs are configurable: declare the list of events you care about and each one gets its own port. Any undeclared event arrives on others.

See Socket.IO.

ActionInputsOutputs
MQTT connect—connected, message
MQTT publishpayload—
MQTT connection close——

Connecting subscribes to the request’s topic; sending publishes with the QoS and retention option configured. See MQTT.

ActionInputsOutputs
SSE connect—connected, message
SSE connection close——

Receive-only: there is no send action. See SSE.

ActionInputsOutputs
STOMP connect—connected, message
STOMP sendpayload—
STOMP connection close——

Connecting emits the CONNECT then one SUBSCRIBE per configured subscription; sending produces a SEND frame; closing a DISCONNECT. See STOMP.

ActionInputsOutputs
AMQP connect—connected, message
AMQP publishpayload—
AMQP connection close——

Connecting consumes the request’s queue (subscribe mode); publishing uses its exchange and routing key. See AMQP.

ActionInputsOutputs
Redis subscribe—connected, message
Redis connection close——

For a single command, that is Redis command, which is a request / response action — see Requests and composition.

ActionInputsOutputs
Kafka consume—connected, message
Kafka connection close——

Consuming subscribes through the request’s consumer group. To produce, that is Kafka produce, a single-shot action. See Kafka.

ActionInputsOutputs
gRPC connect—connected, message
gRPC sendpayload—
gRPC connection close——

For the server-stream, client-stream and bidirectional-stream modes: sending only makes sense for the last two, and closing performs the client-side half-close. A unary call is made with HTTP Request. See gRPC.

ActionInputsOutputs
GraphQL subscribe—connected, message
GraphQL unsubscribe——

See GraphQL.