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

    Class LocalDataTrack

    Implements

    • ILocalTrack
    • IDataTrack
    Index

    Properties

    isLocal: true
    trackSymbol: symbol = TrackSymbol
    typeSymbol: symbol = DataTrackSymbol

    Accessors

    • get info(): DataTrackInfo | undefined

      Metrics about the data track publication.

      Returns DataTrackInfo | undefined

    Methods

    • Try pushing a frame to subscribers of the track.

      Pushing a frame can fail for several reasons:

      • The track has been unpublished by the local participant or SFU
      • The room is no longer connected

      Parameters

      • frame: DataTrackFrame

      Returns Promise<
          Throws<
              void,
              | DataTrackPushFrameError<TrackUnpublished>
              | DataTrackPushFrameError<Dropped>,
          >,
      >