SessionMessage

Label: :IA_Function
Property: type: SessionMessage
Inherits from: Function

The SessionMessage Function sends a broadcast message to the channel.

Parameters

Key Description Default value Possible values
channel Channel name to connect '' string
data data to send to channel null boolean / number / string / object / array

Outgoing triggers

Type: messageReceived

Occurrence: when data was sent succesfully

Example configuration

{
  "type": "SessionMessage",
  "channel": "inform-other-tabs",
  "$data": "{\"message\": \"Test\"}"
}