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

use permessage-deflate #113

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

matkomat
Copy link

Without this deflated messages sent by server cannot be handled and the connection closes with exception Ratchet detected an invalid reserve code (thrown by ratchet/rfc6455/src/Messaging/MessageBuffer.php::270)

To improve on this I think that there needs to exist some nicer way of telling the Connector to send Sec-WebSocket-Extensions with permessage deflate options. For now I enable it by passing custom headers, but maybe a custom ClientNegotiator can be injected to the Connector?

@spideyfusion
Copy link

@cboden Could you please take a look at this PR? It'd be useful for the client to support deflated messages.

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.

2 participants