Skip to content

Message format

Arseniy Malyuk edited this page Mar 31, 2026 · 3 revisions

A messaging standard is used for communication:

{
  "type": "request",
  "action": "some action",
  "id": 1,
  "data": {
    ...
  }
}

and response

{
  "type": "response",
  "status": "ok",
  "id": 1,
  "data": {
   ...
  }
}

Explanation:

  • id of request
  • status can be ok or error.

Clone this wiki locally