Protocol for the WebSocket events

The version 2.0 of the JSON RPC specification makes provision for notifications in the client to server way only. We extend the concept to the server to client way (SpringCard Companion Service to your application), as follow:

<-- {"jsonrpc": "2.0", "event": "type of event", "params": { ...event data...} }

The event field conveys the type of event, and the params field contains all the relevant data.

There is no id field. The client application must not reply to an event coming from the SpringCard Companion Service.