LiveKit JS Client SDK - v2.18.0
    Preparing search index...

    Interface DataTrackUserTimestampExtension

    interface DataTrackUserTimestampExtension {
        timestamp: bigint;
        toBinary(): Uint8Array<ArrayBufferLike> & {};
        toBinaryInto(dataView: DataView): Throws<number, never>;
        toBinaryLengthBytes(): number;
        toJSON(): { lengthBytes: number; tag: number; timestamp: bigint };
    }

    Hierarchy

    • DataTrackExtension
      • DataTrackUserTimestampExtension
    Index

    Properties

    timestamp: bigint

    Methods

    • Encodes the instance as binary and returns the data as a Uint8Array.

      Returns Uint8Array<ArrayBufferLike> & {}

    • Given a DataView, serialize the instance inside and return the number of bytes written.

      Parameters

      • dataView: DataView

      Returns Throws<number, never>

    • Returns the expected length of the serialized output in bytes

      Returns number