This is an old revision of the document!
Preliminary exploration of EdgeOS web APIs.
Logging in
Session is valid for 15 minutes and is refreshed on every web request. POST
Websocket
You can get streaming statistical data from the endpoint 'wss:<host|ip>/ws/stats'. The connection MUST have the origin header set to 'https:<host|ip>'. The format of data to and from the websocket is "LENGTH\nJSON_PAYLOAD". Error 403 on handshake is likely due to lack of 'origin' header as needed. Failure of sending properly formed messages to start the streaming will result in no messages from server aka "dead air". When the SESSION_ID times out the websocket will abruptly close so it's recommended to refresh it occasionally.