Skip to content

[Feature Request] Binary websocket traffic #341

@Gelbpunkt

Description

@Gelbpunkt

Hi,

my personal usecase is that I want to encode JSON more efficiently in Python to send it over the websocket and one of the best ways is to use alternate JSON encoders like orjson which encode to bytes instead of strings. Decoding those to strings before sending them over the websocket connection feels like an unnecessary overhead.

Current, Lavalink rejects any binary websocket traffic, so I am wondering if it would be possible to add support for it. From what I've experienced in languages such as Rust or Python, JSON decoding from bytes can also be more efficient than from strings, so it might be a beneficial addition on both sides. Either way I imagine this to be easy to implement and one of the small things that can make a nice difference.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions