Skip to content

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