Skip to content

Support for sending big messages #2666

Closed
@GeertVanWonterghem

Description

@GeertVanWonterghem

I tested, and, when a message being sent to the client takes longer than the pingTimeout, the connection is disconnected.
In my use case however, I want to connect clients, download the full status, which can be up to at least 2MB, and then come to normal operation.
This means that, in case of low-quality network, the client will disconnect.
I would see several possibilities to solve:
1- Allow to disable ping during some time
2- The library shouldn't trigger ping Timeout when it is sending a message (because that obviously means the client is still connected)
3- The sending of the packets is automatically chunked so ping/pong packets can still be sent/received in between because they are sent with higher priority

My personal preference would be solution 2, but don't know how hard that is to implement...
Is anything like that implemented or would you recommend a different approach?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions