You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this great library. Recently, I’ve been trying to connect to the server with permessage-deflate. While the connection was established, the message wasn’t compressed, which led to a frame error. I tried encoding the message myself, but it didn’t work because the frame wasn’t correct. I noticed there is a deflateFrame method in MessageBuffer, and I believe it can support permessage-deflate in WebSocket.
Hi there,
Thanks for this great library. Recently, I’ve been trying to connect to the server with
permessage-deflate
. While the connection was established, the message wasn’t compressed, which led to a frame error. I tried encoding the message myself, but it didn’t work because the frame wasn’t correct. I noticed there is adeflateFrame
method inMessageBuffer
, and I believe it can supportpermessage-deflate
inWebSocket
.In my opinion, the
permessage-deflate
can be added when initializing the stream (https://github.com/ratchetphp/Pawl/blob/master/src/WebSocket.php#L69).Let me know if you have any suggestions.
The text was updated successfully, but these errors were encountered: