Learn about the format of messages and other events used with the Flow Socket API.

Any message or other kind of event you send or receive has the same JSON format.

{
  "type": "...",
  "payload": {
    ...
  }
}
ParameterDescriptionRequired
typeThe message type
For example: message.send
Required
payloadThe body of the messageRequired