Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use node http instead of faye-websocket in proxy server (#1930)
* fix: pass protocols from headers * Create tall-radios-report.md * log protocols * Use node http instead of faye-websocket * Remove dependence on faye-websocket * Update changeset Update .changeset/tall-radios-report.md * Update packages/wrangler/src/proxy.ts Co-authored-by: MrBBot <bcoll@cloudflare.com> * Update packages/wrangler/src/proxy.ts * Remove string coercion Co-authored-by: Cameron Robey <cameron@cameronrobey.co.uk> Co-authored-by: MrBBot <bcoll@cloudflare.com>
- Loading branch information
1 parent
7ebaec1
commit 5679815
Showing
5 changed files
with
72 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
"wrangler": patch | ||
--- | ||
|
||
fix: use node http instead of faye-websocket in proxy server | ||
|
||
We change how websockets are handled in the proxy server, fixing multiple issues of websocket behaviour, particularly to do with headers. | ||
|
||
In particular this fixes: | ||
|
||
- the protocol passed between the client and the worker was being stripped out by wrangler | ||
- wrangler was discarding additional headesr from websocket upgrade response | ||
- websocket close code and reason was not being propagated by wrangler |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters