websocket subscriptions

This block is part of the websocket group and was last modified in core v13.0.5.

websocket subscriptions v13.0.5

Returns all subscriptions registered on the current websocket.

In pins 0 + flow
  • flow
    flow
Out pins 3 + flow
  • flow
    flow
  • success
    condition
  • error
    value
  • channels
    array

Outputs the channel names the current WebSocket connection is subscribed to on channels with success=true. Without a WebSocket connection: success=false, error=MISSING_WEBSOCKET, channels=[].

A typical wiring for websocket subscriptions: a function trigger starts the flow; the flow out pin feeds debug.

Studio canvas example for the websocket subscriptions block: typical wiring for websocket subscriptions.

Version history

Introduced in v13.0.5.


Back to websocket Return to the main group to view all sub-groups Back to websocket Return to the group to view all blocks within this group