Proxy

GET /socket/proxy

This creates a persistent connection.

The initial requests on this socket should contain a User-Agent header in the format name/version. The version 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 for

  • src field set to nc or tmac

  • state field with an object following the Machine update format