Setu-TS
    Preparing search index...

    Function frameByteLength

    • Measures an inbound frame in bytes.

      Text frames are measured by their UTF-8 encoding rather than their string length, so a multi-byte payload is not undercounted against the limit.

      Parameters

      • data: string | Uint8Array<ArrayBufferLike>

        The frame

      Returns number

      The frame size in bytes

      0.1.0