Partager via


DataChannelReceiver interface

Récepteur DataChannel

Propriétés

channelId
senderParticipantIdentifier

Méthodes

off("close", DataChannelReceiverCloseEvent)
off("messageReady", DataChannelReceiverMessageReadyEvent)
on("close", DataChannelReceiverCloseEvent)
on("messageReady", DataChannelReceiverMessageReadyEvent)
readMessage()

Détails de la propriété

channelId

channelId: number

Valeur de propriété

number

senderParticipantIdentifier

senderParticipantIdentifier: CommunicationIdentifierKind

Valeur de propriété

Détails de la méthode

off("close", DataChannelReceiverCloseEvent)

function off(event: "close", listener: DataChannelReceiverCloseEvent)

Paramètres

event

"close"

off("messageReady", DataChannelReceiverMessageReadyEvent)

function off(event: "messageReady", listener: DataChannelReceiverMessageReadyEvent)

Paramètres

event

"messageReady"

on("close", DataChannelReceiverCloseEvent)

function on(event: "close", listener: DataChannelReceiverCloseEvent)

Paramètres

event

"close"

on("messageReady", DataChannelReceiverMessageReadyEvent)

function on(event: "messageReady", listener: DataChannelReceiverMessageReadyEvent)

Paramètres

event

"messageReady"

readMessage()

function readMessage(): undefined | DataChannelMessage

Retours

undefined | DataChannelMessage