Stream Kit Docs
Plugins

WebSocket

Connect to WebSocket servers and trigger actions on messages and connection events.

WebSocket

The WebSocket plugin maintains outbound connections to WebSocket servers and fires actions when messages arrive or connection state changes.

For an inbound remote-control API (clients connect to Stream Kit), see the WebSocket API Server.

Connections

Configure connections under Plugins → WebSocket. Each connection has a name, URL, auto-connect, and reconnect settings (max attempts and delay). Turn on Auto-connect to connect when the plugin enables, or use Connect from the list. The plugin reconnects as needed.

Triggers

TriggerEvent
Message ReceivedA message arrived on a connection
ConnectedConnection established
DisconnectedConnection closed

Browse IDs: WebSocket triggers.

Message Received conditions

Connection

Optional — restrict to one configured connection, or leave empty for any connection.

Message text

Match the raw payload string:

OperatorDescription
Starts with / Ends with / Contains / EqualsText match
NotInvert the condition

Empty match value = always matches.

JSON field

Match a nested field with dot paths (data.topic, items.0.name):

[data.topic] [Equals] [game.lobby.joined]
SituationResult
Invalid JSON when path is setCondition fails
Path missingCondition fails
Empty path or empty valueAlways matches

Handlers

WebSocket → Connection can send a message on a configured connection.

See WebSocket handlers.

Trigger variables

Message events expose connectionId, connectionName, url, message, isJson, and parsed data when JSON.

Use Test trigger on Message Received with sample JSON to debug conditions.

On this page