Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"worlds": [ "all" ] appears to be broken on world-level event subscriptions #131

Open
fredkilbourn opened this issue May 18, 2022 · 2 comments
Labels
Issue Anything not working as intended Streaming API Anything relating to the push.planetside2.com/streaming API

Comments

@fredkilbourn
Copy link
Collaborator

It appears that world-level events are not working reliably if you subscribe with "worlds": [ "all" ], instead you must subscribe with "worlds":["1","9","10","11","13","17","18","19","25","1000","1001"].

I tested several variations and further testing is needed, but here are results from testing on http://census.daybreakgames.com/ps2-websocket.html:

/*** RECEIVES FacilityControl AND PlayerFacilityCapture ***/

{
	"service": "event",
	"action": "subscribe",
	"characters": [
		"all"
	],
	"eventNames": [
		"PlayerFacilityCapture",
		"FacilityControl"
	],
	"logicalAndCharactersWithWorlds": false,
	"worlds": [
		"1",
		"9",
		"10",
		"11",
		"13",
		"17",
		"18",
		"19",
		"25",
		"1000",
		"1001"
	]
}

{
	"service": "event",
	"action": "subscribe",
	"characters": [
		"all"
	],
	"eventNames": [
		"PlayerFacilityCapture",
		"FacilityControl"
	],
	"logicalAndCharactersWithWorlds": true,
	"worlds": [
		"1",
		"9",
		"10",
		"11",
		"13",
		"17",
		"18",
		"19",
		"25",
		"1000",
		"1001"
	]
}

/*** ONLY RECEIVES FacilityControl ***/

{
	"service": "event",
	"action": "subscribe",
	"eventNames": [
		"FacilityControl",
		"PlayerFacilityCapture"
	],
	"worlds": [
		"1",
		"9",
		"10",
		"11",
		"13",
		"17",
		"18",
		"19",
		"25",
		"1000",
		"1001"
	]
}

{
	"service": "event",
	"action": "subscribe",
	"eventNames": [
		"PlayerFacilityCapture",
		"FacilityControl"
	],
	"logicalAndCharactersWithWorlds": false,
	"worlds": [
		"1",
		"9",
		"10",
		"11",
		"13",
		"17",
		"18",
		"19",
		"25",
		"1000",
		"1001"
	]
}

{
	"service": "event",
	"action": "subscribe",
	"eventNames": [
		"PlayerFacilityCapture",
		"FacilityControl"
	],
	"logicalAndCharactersWithWorlds": true,
	"worlds": [
		"1",
		"9",
		"10",
		"11",
		"13",
		"17",
		"18",
		"19",
		"25",
		"1000",
		"1001"
	]
}

/*** ONLY RECEIVES PlayerFacilityCapture ***/
{
	"service": "event",
	"action": "subscribe",
	"characters": [
		"all"
	],
	"eventNames": [
		"PlayerFacilityCapture",
		"FacilityControl"
	],
	"logicalAndCharactersWithWorlds": false,
	"worlds": [
		"all"
	]
}

/*** RECEIVES NO EVENTS ***/

{
	"service": "event",
	"action": "subscribe",
	"eventNames": [
		"FacilityControl",
		"PlayerFacilityCapture"
	],
	"worlds": [
		"all"
	]
}

{
	"service": "event",
	"action": "subscribe",
	"eventNames": [
		"PlayerFacilityCapture",
		"FacilityControl"
	],
	"logicalAndCharactersWithWorlds": false,
	"worlds": [
		"all"
	]
}

{
	"service": "event",
	"action": "subscribe",
	"eventNames": [
		"PlayerFacilityCapture",
		"FacilityControl"
	],
	"logicalAndCharactersWithWorlds": true,
	"worlds": [
		"all"
	]
}
@fredkilbourn fredkilbourn added the Streaming API Anything relating to the push.planetside2.com/streaming API label May 18, 2022
@fredkilbourn
Copy link
Collaborator Author

Per [DIG] Maelstrome26 the valid worlds should be:

export const worldArray = [
    1,
    10,
    13,
    17,
    19,
    40,
    1000,
    2000,
];

https://discord.com/channels/251073753759481856/451032574538547201/976479124086464522

@fredkilbourn fredkilbourn added the Issue Anything not working as intended label Dec 9, 2022
@microwavekonijn
Copy link

I just wanted to leave the comment that the case /*** ONLY RECEIVES FacilityControl ***/ is not broken. PlayerFacilityCapture is a character centric event that is filtered by whitelisting character id first and foremost, world ids can be used to further filter the messages in combination with logicalAndCharactersWithWorlds set to true.

I suspect it is a bug with the wildcard for worlds which is also related to the subscriptions being altered. I am currently tracking this in more detail with NSS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue Anything not working as intended Streaming API Anything relating to the push.planetside2.com/streaming API
Projects
None yet
Development

No branches or pull requests

2 participants