unsubscribe websocket
This block is part of the websocket group and was last modified in core v13.0.5.
unsubscribe websocket v13.0.5 Unsubscribes the websocket from a specific channel.
- flow
- channels
arrayrequiredHidden when other fields are filled
- channel
valuerequiredHidden when other fields are filled
- events
arrayThe events to unsubscribe from. If you owuld like to unsubscribe from all events within this channel, leave this array empty or provide
*as one of the values. - skip jwt
conditionrequiredSkips the broadcast of subscriptions to the frontend. If set to true, the frontend will not be able to resubscribe on the channels where the broadcast was skipped.
- flow
- success
condition - error
value - channels
array
Unsubscribes the current WebSocket connection from the given channels (channels array and channel pin merged, duplicates removed); the channels out pin lists the channels actually unsubscribed. Scoped to the events list when wired, all events when empty. success=false with error MISSING_CHANNELS when no channel resolves or MISSNG_WEBSOCKET (sic) when there is no connection; does nothing in simulation. Unless skipjwt is true, the new subscription set is broadcast to the frontend.
A typical wiring for unsubscribe websocket: a function trigger starts the flow; with values feeds the channels pin; value feeds the channel pin; the flow out pin feeds debug.
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 