Proxy
- GET /socket/proxy
This creates a persistent connection.
The initial requests on this socket should contain a
User-Agent
header in the formatname/version
. Theversion
part of the string will be shown to the user as the proxy version.When machines are modified or deleted, Event bus object messages will also be sent to clients on this socket.
Each JSON object received by the server from this socket will be processed as as single machine update. These messages should contain:
machine_id
field containing the ID of the machine the update is forsrc
field set tonc
ortmac
state
field with an object following the Machine state format