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

Hardcode ws hibernation event type in workerd #788

Merged
merged 1 commit into from
Jun 20, 2023

Conversation

MellowYarker
Copy link
Contributor

When attempting to use the websocket hibernation api while running wrangler dev, we saw a.getHibernationEventType() != nullptr errors pop up because the hibernation event ID is defined in our internal codebase.

Note that this change only affects server.c++, which durable objects does not rely upon in production. This also does not enable the actual hibernation of websockets/DOs, it's only a step towards getting hibernatable websocket events to deliver locally.

When attempting to use the websocket hibernation api while running
`wrangler dev`, we saw `a.getHibernationEventType() != nullptr` errors
pop up because the hibernation event ID is defined in our internal
codebase.

Note that this change only affects server.c++, which durable objects
does not rely upon in production. This also does not enable the actual
hibernation of websockets/DOs, it's only a step towards getting
hibernatable websocket events to deliver locally.
@MellowYarker MellowYarker merged commit 3c15df5 into main Jun 20, 2023
7 checks passed
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