planet site data payload changed format
Looks like there's no longer a PLANET_SITES message. It seems to have been revised to DATA_DATA, with a path of ["planets", <planet_id>, "sites"]
.
See sample of json:
[
"event",
{
"messageType": "ACTION_COMPLETED",
"payload": {
"actionId": "170d5919-4445-4f47-aaaa-3390e84109f3",
"status": 0,
"message": {
"messageType": "DATA_DATA",
"payload": {
"body": [
{
"planetId": "8403b6809cda4c6adf1362a5c2801ad0",
"ownerId": "b93d5077b13d2d78bc4ece417548aade",
"entity": {
"id": "b93d5077b13d2d78bc4ece417548aade",
"name": "Lilu Industry",
"code": "LILU",
"_type": "company",
"_proxy_key": "b93d5077b13d2d78bc4ece417548aade"
},
"type": "PLAYER_SITE",
"plot": 238,
"id": "1d5654f38845b1627cd0ba1bd73afb70"
},
{
"planetId": "8403b6809cda4c6adf1362a5c2801ad0",
"ownerId": "00a433e43a5204579091fa5f05debfc5",
"entity": {
"id": "00a433e43a5204579091fa5f05debfc5",
"name": "Yellow Fin, Inc. - Nemesis",
"code": "AHIN",
"_type": "corporation",
"_proxy_key": "00a433e43a5204579091fa5f05debfc5"
},
"type": "CORPORATION_PROJECT_HEADQUARTERS",
"plot": 211,
"id": "c0fb84a6037bab8fd4c1c90cfac73da7"
},
{
"planetId": "8403b6809cda4c6adf1362a5c2801ad0",
"ownerId": "f0e42308e758db725fb12c56367983d3",
"entity": {
"id": "f0e42308e758db725fb12c56367983d3",
"name": "Rionan's Fuel and Transport",
"code": "RIO",
"_type": "company",
"_proxy_key": "f0e42308e758db725fb12c56367983d3"
},
"type": "PLAYER_SITE",
"plot": 298,
"id": "c455b41f2c8cf38a750313336fe5da91"
},
// Content snipped
],
"path": [
"planets",
"8403b6809cda4c6adf1362a5c2801ad0",
"sites"
]
}
}
}
}
]