Bun

class

quic.QuicEndpoint.Stats

class Stats

A view of the collected statistics for an endpoint.

  • readonly bytesReceived: bigint

    The total number of bytes received by this endpoint. Read only.

  • readonly bytesSent: bigint

    The total number of bytes sent by this endpoint. Read only.

  • readonly clientSessions: bigint

    The total number of sessions initiated by this endpoint. Read only.

  • readonly createdAt: bigint

    A timestamp indicating the moment the endpoint was created. Read only.

  • readonly destroyedAt: bigint

    A timestamp indicating the moment the endpoint was destroyed. Read only.

  • readonly immediateCloseCount: bigint

    The total number of sessions that were closed before handshake completed. Read only.

  • readonly packetsReceived: bigint

    The total number of QUIC packets successfully received by this endpoint. Read only.

  • readonly packetsSent: bigint

    The total number of QUIC packets successfully sent by this endpoint. Read only.

  • readonly retryCount: bigint

    The total number of QUIC retry attempts on this endpoint. Read only.

  • readonly serverBusyCount: bigint

    The total number of times an initial packet was rejected due to the endpoint being marked busy. Read only.

  • readonly serverSessions: bigint

    The total number of peer-initiated sessions received by this endpoint. Read only.

  • readonly statelessResetCount: bigint

    The total number of stateless resets handled by this endpoint. Read only.

  • readonly versionNegotiationCount: bigint

    The total number sessions rejected due to QUIC version mismatch. Read only.