WebSocket return each data in one object

Tech Pass5 months ago

Hello now am connecting two devices when connect to web socket it returns on object contains both positions of devices and this is good the second it send only one object hold the first position of the first device and the second position of second device how can I over come this problem