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
status
ok
error
There was an error while loading. Please reload this page.