This repository has been archived by the owner on Aug 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 337
WebSocket does not work with wrangler dev
#2079
Labels
bug
Something isn't working
Comments
Good catch, we should definitely fix this. |
I'm going to leave this issue open till we have a proper fix. |
Unfortunately, I am not able to connect to my localhost worker - which I started with I get 2 errors in Firecamp (websocket client):
It works when connecting to a my project is open source at https://github.com/ben-xD/listenos/blob/main/backend/src/realtime/websocket_session.ts Do you know what's going wrong? I am using the latest wrangler beta: |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
🐛 Bug report
Describe the bug
Cloudflare Worker supports establish experimental WebSocket connection with users, which could work with production environment perfectly. But development server started by
wrangler dev
does not work.With default config, we cannot built any WebSocket connection because worker cannot receive
Upgrade
headerOnce set up configs below, Worker can receive
Upgrade
header and could establish a WebSocket connection, but it disconnected immediatelyReproduce the bug
Create a worker provides WebSocket server with official demo
Environment and versions
Fill out the following information about your environment.
wrangler -V
: wrangler 1.19.3-rc.1node -v
: v16.9.1wrangler.toml
:The text was updated successfully, but these errors were encountered: