Stream Kit Docs
API ReferenceWebSocket

Message Received

WebSocket trigger: websocket:websocket:message-received

Message Received

Trigger IDwebsocket:websocket:message-received
PluginWebSocket
CategoryWebSocket

Variables

Copy variables into handler fields using {variableName} syntax.

{connectionId}{connectionName}{url}{message}{event}{data}{isJson}{affectedConnectionIds}
NameTypeDescription
{connectionId}
string

Configured WebSocket connection ID.

Example: test-connection

{connectionName}
string

Display name of the WebSocket connection.

Example: Test Connection

{url}
string

WebSocket server URL.

Example: ws://localhost:8080

{message}
string

Full message text from the event.

{event}

Lifecycle or queue event name.

Example: alert

{data}
unknown

Parsed JSON payload from the WebSocket message.

{isJson}
boolean

Whether the received payload parsed as JSON.

Example: true

{affectedConnectionIds}
string

Connection IDs affected by a broadcast event.

Conditions

ConditionDescription
ConnectionRestrict to one configured WebSocket connection. Leave empty to match any connection.
MessageMatch message text (starts with, ends with, contains, equals). Leave empty to always match.
JSON fieldMatch a field inside JSON using a dot-path and text operator.

On this page