[WebAPI] Subscribe to events using a websocket
Description
The EventAPI added new possibilities to collect information about the platform. Natively, we can:
- be notified when an agent is created or deleted
- be notified when a message is received or sent
- be notified when the platform changes its state (RUNNING / STOPPED)
- be notified when an agent changes its state (ACTIVE / SUSPENDED / WAITING)
This kind of information can be very useful for an external client and should be made available.
To do
Using a websocket, an external client should be able to [un]subscribe to/from specific topics and receive, through the websocket, the emitted events in a JSON representation.
The websocket should be available at ws://XXX/v1/platforms/[name]/ws
.