Skip to main content
WSS
Authenticate
type:object

The token: the first message, within 10 seconds of hello, and later a fresh token on the open connection.

Ping
type:object

Asks whether the connection works: pong comes back with the same data.

Subscribe
type:object

Follows what a list of the HTTP API answers, with its filters, scope and access: the state now, then each change.

Unsubscribe
type:object

Ends the subscription its id names.

Hello
type:object

The first message, right after the upgrade.

Authenticated
type:object

The token counts: until when, and with which scopes.

Subscribed
type:object

The subscription is made; its state now follows, a message per resource.

Unsubscribed
type:object

The subscription ended, asked for or not; nothing of it follows.

Live state
type:object

A charger's live state, as GET /v4/chargers/{charger}/live answers it: first the state now, then after each change, at most one per charger a second.

Removed
type:object

A charger left the subscription: it sends nothing more here.

Pong
type:object

The answer to ping, with its data.

Heartbeat
type:object

After 25 seconds without another message: the connection lives.

Token expiring
type:object

The authentication ends in 60 seconds: send a fresh token with authenticate.

Reconnect
type:object

The server closes this connection soon: open a new one first, then close this one.

Error
type:object

A request failed, as the HTTP API's problems: code says why. The connection stays open.