Skip to content

WebSocket permessage-deflate extension support #770

Open
@novacrazy

Description

@novacrazy

Sec-WebSocket-Extensions: permessage-deflate and such is available in Firefox and Chrome, and utilizing it natively would eliminate the need to load large JavaScript decompression libraries on the client-side. (Large as in about 28KB min-gzipped)
The native implementation in-browser is probably faster than Javascript codecs as well.

Ideally, this could be automatic, as the compression is transparent. However, it should also be able to signal to the user code that compression extensions are unavailable, so it could fallback and signal to load those aforementioned libraries.

The alternative would be to just continue doing it manually. I'm simply using flate2 and sending/receiving binary messages.

Perhaps this is more an issue for tokio-tungstenite?

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions