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

Enable WebSocket Compression in workerd #69

Merged

Conversation

MellowYarker
Copy link
Contributor

No description provided.

When terminating a websocket in a worker (as a server), we need to
access the client request's headers to determine what (if any)
compression parameters should be used.
@github-actions
Copy link

github-actions bot commented Oct 3, 2022

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@MellowYarker
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@MellowYarker
Copy link
Contributor Author

recheck

src/workerd/api/http.c++ Outdated Show resolved Hide resolved
src/workerd/api/http.c++ Outdated Show resolved Hide resolved
src/workerd/api/http.h Outdated Show resolved Hide resolved
By default, kj sets the compression mode to `NO_COMPRESSION`. We want to
use `MANUAL_COMPRESSION` in Workerd so we modify the setting here.
@MellowYarker MellowYarker force-pushed the milan/enable-websocket-compression branch 2 times, most recently from ce030b8 to b49ad1e Compare October 4, 2022 15:45
src/workerd/api/http.c++ Outdated Show resolved Hide resolved
src/workerd/api/web-socket.c++ Outdated Show resolved Hide resolved
If this flag is not set, we will strip `Sec-WebSocket-Extensions`
from subrequests (including `new WebSocket()`) and responses.
@MellowYarker MellowYarker force-pushed the milan/enable-websocket-compression branch from 2873e9f to 5370f10 Compare October 4, 2022 16:42
@kentonv kentonv merged commit 41d09c1 into cloudflare:main Oct 5, 2022
@MellowYarker
Copy link
Contributor Author

Thanks for reviewing!

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

Successfully merging this pull request may close these issues.

None yet

2 participants