Skip to content
New issue

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

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

Already on GitHub? # 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.

@MellowYarker MellowYarker force-pushed the milan/hibernate-locally branch from ebc7518 to 2ae6ff0 Compare June 19, 2023 21:12
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.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants