circu.js
    Preparing search index...
    • Applies or removes a WebSocket masking key. XOR is symmetric, so masking and unmasking use the same operation.

      Parameters

      • data: Uint8Array<ArrayBuffer>

        The data to mask/unmask.

      • key: Uint8Array<ArrayBuffer>

        The 4-byte masking key.

      Returns Uint8Array<ArrayBuffer>

      The masked/unmasked data.