Skip to content

WebSocket: configure the maximum message size #15809

@nesk

Description

@nesk

I see in the codebase that the WebSocket server has some size limitations for its payloads. More specifically, the message size is limited to 128 MiB.

It would be great to make this configurable, maybe via the UpgradeWebSocketOptions interface? We could add a new field maxMessageSize?: number

What do you think about that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    ext/websocketrelated to the ext/websocket cratesuggestionsuggestions for new features (yet to be agreed)
    No fields configured for suggestion.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions