devicehive-java-server
devicehive-java-server copied to clipboard
Desynchronization in the subscription flow
Server sends new command with a subscription id before the sub id (i.e. response to «subscribe» action) sent to the device
Steps to reproduce
- Open device websocket connection
- Authenticate device with access key
- Open client websocket connection
- Authenticate client with access key
- Send «subscribe» action from the device side
- Send new command from the client side Delay between 5th and 6th steps should be as minimal as possible.
Actual result
- Server sends new command
- Server sends response to subscribe request with a valid subscription id
Expected result
- Server sends response to subscribe request with a valid subscription id
- Server sends new command with a valid subscription id