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

Cannot use WebSocket Hibernation API #736

Closed
broccolihighkicks opened this issue Jun 5, 2023 · 3 comments
Closed

Cannot use WebSocket Hibernation API #736

broccolihighkicks opened this issue Jun 5, 2023 · 3 comments

Comments

@broccolihighkicks
Copy link

workerd = 1.20230518.0
wrangler = 3.0.1

When using the example code from here: cloudflare/workers-chat-demo#32 and running wrangler dev

I get this error:

workerd/jsg/util.c++:276: error: e = workerd/api/actor-state.c++:794: failed: expected a.getHibernationEventType() != nullptr

The docs say this is in beta. Does this mean it does not work?

Do you know when it will/what I can do to enable it locally?

Thanks.

@broccolihighkicks broccolihighkicks changed the title Cannot use WebSocket Hibernation Cannot use WebSocket Hibernation API Jun 5, 2023
@MellowYarker
Copy link
Contributor

Sorry, seems like the docs update hasn't gone out yet. Hibernation doesn't work for wrangler dev yet, your best bet at this point is to deploy a worker and use it for testing.

@threepointone
Copy link

This now works with wrangler dev in newer versions

@MellowYarker
Copy link
Contributor

Thanks for the reminder Sunil, fixed by #788 included in release v1.20230628.0, which I believe is used in Wrangler 3.1.2 or greater.

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

No branches or pull requests

3 participants