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

Add presence server #652

Merged

Conversation

Beyley
Copy link
Member

@Beyley Beyley commented Sep 3, 2024

This server is responsible for one thing only, which is telling the client to load the slot listing for any user slot you send it. Retail LBP2 and LBP3 both implement this, but both require special care to make it use a separate domain (which is important if you want to protect your main gameserver behind cloudflare!)

This is a fairly basic implementation of the server, but should be sufficient for even large amounts of connected players.

Marking as draft until #649 is merged and hashed live play now is added, since this branch is based off of that one (didnt wanna deal with merge conflicts on this PR).

Thanks to aidan for figuring all this out

Example of server in action:

play.now.mp4

@Beyley Beyley marked this pull request as ready for review September 7, 2024 03:25
@Beyley Beyley requested a review from jvyden September 7, 2024 03:25
@Beyley
Copy link
Member Author

Beyley commented Sep 7, 2024

I added a field to ApiExtendedGameUserResponse for whether the user is on the presence server, this should allow frontends to switch the terminology of popups/buttons to reflect the differing behaviour.

Copy link
Member

@jvyden jvyden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's some minor syntax/naming things in here but otherwise this looks pretty good now.

@jvyden jvyden merged commit 0cacb1c into LittleBigRefresh:main Sep 10, 2024
2 checks passed
@Beyley Beyley deleted the regional_indicator_b_resence-server branch September 10, 2024 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants