Constructors

Methods

Constructors

  • Parameters

    • options: {
          bufferSize: number;
          maxMessageSize: number;
          onError: ((msgBuffer: Uint8Array, errorMsg: string) => void);
          onMessage: ((msg: Uint8Array) => void);
      }
      • bufferSize: number
      • maxMessageSize: number
      • onError: ((msgBuffer: Uint8Array, errorMsg: string) => void)
          • (msgBuffer, errorMsg): void
          • Parameters

            • msgBuffer: Uint8Array
            • errorMsg: string

            Returns void

      • onMessage: ((msg: Uint8Array) => void)
          • (msg): void
          • Parameters

            • msg: Uint8Array

            Returns void

    Returns Decoder

Methods