Set theme to dark (⇧+D)
Manufactory

After establishing a web socket connection, we can start sending user’s generated events via the open channel.

​​ Required keys

  • type (required) string - The message type, in this case we will be using event.
  • attributes (required) object - Pairs containing attribute name and the corresponding value while considering the correct attribute names and data types. Please refer to 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"
}