-
Notifications
You must be signed in to change notification settings - Fork 333
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
🐛 BUG: Durable Objects: ws
argument in webSocketClose()
handler is invalid
#2299
Comments
This comment was marked as duplicate.
This comment was marked as duplicate.
This is a tricky one. The WebSocket standard was based on the idea that it would be used from a browser, created with If you need to attach a url to the websocket (and have it persist through hibernation), a workaround here could be to use I'll transfer this to the workerd repo since that's where any changes would be made, let's see what the team says there. |
I'm inclined to agree with @threepointone. It's not really clear when we would set it on the server side with |
Thank you both for your clear responses. In my case I was able to retrieve the data I needed from the associated websocket via The |
Which Cloudflare product(s) does this pertain to?
Other
What version(s) of the tool(s) are you using?
wrangler@npm:3.60.3
,@cloudflare/next-on-pages@npm:1.11.3
What version of Node are you using?
20.13.1
What operating system and version are you using?
MacOS
Describe the Bug
Observed behavior
In development when I log the
ws
passed towebSocketClose
the result is:Expected behavior
The
ws
passed to the close handler to have the correct url.Steps to reproduce
At this stage it's unclear to me whether this is also an issue when in prod (i.e. running on cloudflare)
The text was updated successfully, but these errors were encountered: