Skip to content

Send events via websocket

Once you’ve established a websocket connection with Tallyfy Manufactory1, you can start sending user-generated events through the open channel.

Required keys

  • type (required) string - The message type. Here we’ll use event.
  • attributes (required) object - Key-value pairs with attribute names and their values. Make sure you’re using the correct attribute names and data types. See get events schema.

Websocket message example

{
"type": "event",
"attributes": {
"event_name": "login",
"event_type": "user-actions",
"made_purchase": false
}
}

Websocket reply example

{
"type": "event",
"status": "ok"
}

Footnotes

  1. Tallyfy’s event tracking and analytics platform for process automation insights