Condividi tramite


DataChannelReceiver interface

Ricevitore DataChannel

Proprietà

channelId
senderParticipantIdentifier

Metodi

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

Dettagli proprietà

channelId

channelId: number

Valore della proprietà

number

senderParticipantIdentifier

senderParticipantIdentifier: CommunicationIdentifierKind

Valore della proprietà

Dettagli metodo

off("close", DataChannelReceiverCloseEvent)

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

Parametri

event

"close"

off("messageReady", DataChannelReceiverMessageReadyEvent)

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

Parametri

event

"messageReady"

on("close", DataChannelReceiverCloseEvent)

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

Parametri

event

"close"

on("messageReady", DataChannelReceiverMessageReadyEvent)

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

Parametri

event

"messageReady"

readMessage()

function readMessage(): undefined | DataChannelMessage

Restituisce

undefined | DataChannelMessage