Synchronous Communication with Streaming API

<< Click to Display Table of Contents >>

Navigation:  The API > JSON API > Communication design >

Synchronous Communication with Streaming API

Synchronous requests with streaming API

For client requests to the streaming API, a never ending stream of events represented by individual JSON objects is established.

After establishing the connection, the gateway will

1.send out the last states of all devices, which have the flag transmitOnConnect set.

2.start immediately with the stream of events as they occur

3.Gateway will never close this connection

 

This is valid for

GET

/devices/stream?direction=from|to|both

/devices/{deviceId}/stream?direction=from|to|both

 

Streaming API version 4