Listening in to device communication
Get a Websocket to listen to events from a single device. In the HTTP request, the client shoud upgrade to a WebSocket connection.
An open websocket
Please note that cURL does not support websockets. To connect, you can use a tool like wscat:
wscat -c "wss://api.teleport.withthegrid.com/v1/device/web-socket?deviceHashId=supplyHashIdHere" -H "authorization:Bearer enteryourtokenhere"