I am sending device commands to multiple devices and capturing the output using the SocketIO-based Status API.
Commands are very simple. Just an "echo" to make sure that the on-device execution is as simple as possible.
API used is:
When I send the commands sequentially to the devices (one by one) I reliably receive the expected "completed" message with the output of the echo command as generated on device.
When I send commands to multiple devices concurrently, the results are mixed. The number of "completed" messages varies. In most cases at least a few responses will never be sent from RMS.
Initially I was creating a separate, shortlived socket connection with a single channel subscription for each device command. Suspecting that this was not ideal, I am now using a shared connection and subscribe / unsubscribe to the status channels on one socket connection.
Both approaches lead to the same mixed result wrt receiving "completed" messages.
Is sending concurrent device requests and receiving responses to / from RMS supported? Or am I supposed to limit the number of concurrent requests and capture the responses sequentially?