#382·Ratchet

Handling permessage-deflate requests

Author: zzgabCreated Nov 16, 2015Updated Jul 3, 2025
LabelsenhancementWebSocket

Hello! Is there a way to handle requests specifying compression header? Sec-WebSocket-Extensions: permessage-deflate

Response should contain the same header (easy), but the request data ($msg in onMessage) would have to be inflated, so would the response data passed to send( ).

Advice appreciated! Thanks, Gabriel