Hey @mahesh. One thing I notice is that your websocket is trying to connect to the local host instead of the devices url. Can you try change ws://localhost:8080/WebsocketHome/actions to ws://<UUID>.resindevice.io:8080/WebsocketHome/actions replacing <UUID> with the RESIN_DEVICE_UUID. Also ensure that you have enabled your deviceURL, you can see the documentation on that here: https://docs.resin.io/management/devices/#enable-public-device-url