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

Disable hibernation properly #134

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Disable hibernation properly #134

merged 1 commit into from
Oct 21, 2024

Conversation

third774
Copy link
Collaborator

No description provided.

@third774 third774 requested a review from astroza October 17, 2024 22:14
@@ -170,6 +172,10 @@ export class ChatRoom extends Server<Env> {
const roomStateMessage = JSON.stringify(roomState)

for (const connection of this.getConnections()) {
// skip connection if it's not OPEN
if (connection.readyState !== WebSocket.OPEN) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It seems like partyserver's InMemoryConnectionManager is behaving differently from the HibernatingConnectionManager, and connections aren't being removed after a failed attempt to broadcast, so we need to manually skip them for now.

@third774
Copy link
Collaborator Author

Removed our workaround and upgrade partyserver since this has been fixed upstream threepointone/partyserver#93

@third774 third774 merged commit d40dba2 into main Oct 21, 2024
4 checks passed
@third774 third774 deleted the disable-hibernation-properly branch October 21, 2024 15:19
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.

3 participants