Vehicle online list push
After each successful login of websocket connection, the user's vehicle online list will be pushed immediately, and the subsequent vehicle online and offline status will passon/off line messagePush notification
websocket Header field information
Message method: Push
Message type: 8000
Push message definition
| field | type | desc |
|---|---|---|
| hdr | object | Headers, Table 1 in login :websocket headers |
| onlineVehicleInfo | array(object) | List of vehicles online, defined View current page Table 1 |
Table 1: Online list of vehicles
| field | type | desc |
|---|---|---|
| vehicleGuid | integer | Vehicle ID |
| vehicleNo | string | Plat No. |
Example
json
{
"hdr": {
"code": 200,
"message": "",
"msgType": 8001,
"reqSN": 1,
"respSN": 0
},
"onlineVehicleInfo": [{
"vehicleGuid": 1,
"vehicleNo": "testA00001"
}, {
"vehicleGuid": 2,
"vehicleNo": "testA00002"
}]
}{
"hdr": {
"code": 200,
"message": "",
"msgType": 8001,
"reqSN": 1,
"respSN": 0
},
"onlineVehicleInfo": [{
"vehicleGuid": 1,
"vehicleNo": "testA00001"
}, {
"vehicleGuid": 2,
"vehicleNo": "testA00002"
}]
}
X-Link API Document