devicehive-java-server icon indicating copy to clipboard operation
devicehive-java-server copied to clipboard

Desynchronization in the subscription flow

Open sorjef opened this issue 11 years ago • 0 comments

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

  1. Open device websocket connection
  2. Authenticate device with access key
  3. Open client websocket connection
  4. Authenticate client with access key
  5. Send «subscribe» action from the device side
  6. Send new command from the client side Delay between 5th and 6th steps should be as minimal as possible.

Actual result

  1. Server sends new command
  2. Server sends response to subscribe request with a valid subscription id

Expected result

  1. Server sends response to subscribe request with a valid subscription id
  2. Server sends new command with a valid subscription id

sorjef avatar Dec 08 '14 14:12 sorjef