Skip to content

Feature : Add bandwidth logging (bytes up/down + compression ratios) to sync/stream/router #196

@archief2910

Description

@archief2910

The relay server already tracks per-connection bytesUp, bytesUpCompressed, bytesDown, bytesDownCompressed in RelayWebsocket.cpp and logs a summary on disconnect. The mesh client side (WSConnection, used by sync/stream/router) has access to the same data via compressedSize in onMessage2 and send(), but doesn't currently log it.

This would add matching byte counters to WSConnection and log a summary on connection close, reusing the existing renderSize/renderPercent helpers. For router, equivalent counters would go in ConnDesignator user data.

Example output on sync completion:

Sync complete. UP: 2.3 MB (62% compressed) DN: 14.1 MB (71% compressed)

Useful for operators monitoring relay-to-relay traffic and evaluating compression dictionary effectiveness.


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions