var ws = new WebSocket("ws://localhost/bvcsp/v1/ws/gpsdata",[token]);var upgrader = websocket.Upgrader{
Subprotocols: []string{r.Header.Get("Sec-WebSocket-Protocol")},
}curl --location 'https://192.168.88.32:9781/bvcsp/v1/ws/device_status?token=xxxxxx' \
--header 'Sec-WebSocket-Protocol: string' \
--header 'Content-Type: application/json'[
{
"id": "string",
"battery": 0,
"network": 1,
"recording": true
}
]