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

Websocket per message deflate #7752

Open
baytekink opened this issue Nov 21, 2024 · 0 comments
Open

Websocket per message deflate #7752

baytekink opened this issue Nov 21, 2024 · 0 comments

Comments

@baytekink
Copy link

Product

Hot Chocolate

Is your feature request related to a problem?

Hi everyone, is there any way to compress messages when using websockets on Hotchocolate defining like here: https://www.rfc-editor.org/rfc/rfc7692 ? smth: per message deflate

The solution you'd like

As far as I saw from codes, HotChocolate.AspNetCore.Subscriptions.WebSocketConnection.cs creates the websocket connection on TryAcceptConnection method. using var socket = await webSocketManager.AcceptWebSocketAsync(); with this code. Can we have a chance to give WebSocketAcceptContext while AcceptWebSocketAsync which I send you attached picture. DangerousEnableCompression will do the permessagedeflate operation if given true, thx in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant