Skip to content

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

fieldtypedesc
hdrobjectHeaders, Table 1 in login :websocket headers
onlineVehicleInfoarray(object)List of vehicles online, defined View current page Table 1

Table 1: Online list of vehicles

fieldtypedesc
vehicleGuidintegerVehicle ID
vehicleNostringPlat 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"
	}]
}