Class: RemoteDataTrack

RemoteDataTrack

A RemoteDataTrack represents data published to a Room by a RemoteParticipant.


Properties:
Name Type Argument Description
isEnabled boolean

true

kind Track.Kind

"data"

maxPacketLifeTime number <nullable>

If non-null, this represents a time limit (in milliseconds) during which data will be transmitted or retransmitted if not acknowledged on the underlying RTCDataChannel.

maxRetransmits number <nullable>

If non-null, this represents the number of times the data will be retransmitted if not successfully received on the underlying RTCDataChannel.

ordered boolean

true if data on the RemoteDataTrack can be received out-of-order.

reliable boolean

This is true if both maxPacketLifeTime and maxRetransmits are set to null. In other words, if this is true, there is no bound on packet lifetime or the number of retransmits that will be attempted, ensuring "reliable" transmission.

Fires:

Extends

Members


id

The RemoteDataTrack's ID.

Properties:
Type Description
Track.ID
Overrides:
Deprecated:

isSubscribed

Whether the RemoteDataTrack is subscribed to

Properties:
Type Description
boolean
Deprecated:

sid

The SID assigned to the RemoteMediaTrack

Properties:
Type Description
Track.SID

Events


message

A message was received over the RemoteDataTrack.

Parameters:
Name Type Description
data string | ArrayBuffer
track RemoteDataTrack

The RemoteDataTrack that received the message


unsubscribed

The RemoteDataTrack was unsubscribed from.

Parameters:
Name Type Description
track RemoteDataTrack

The RemoteDataTrack that was unsubscribed from

Deprecated: