Partilhar via


DataChannelReceiver interface

Recetor DataChannel

Propriedades

channelId
senderParticipantIdentifier

Métodos

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

Detalhes de Propriedade

channelId

channelId: number

Valor de Propriedade

number

senderParticipantIdentifier

senderParticipantIdentifier: CommunicationIdentifierKind

Valor de Propriedade

Detalhes de Método

off("close", DataChannelReceiverCloseEvent)

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

Parâmetros

event

"close"

off("messageReady", DataChannelReceiverMessageReadyEvent)

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

Parâmetros

event

"messageReady"

on("close", DataChannelReceiverCloseEvent)

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

Parâmetros

event

"close"

on("messageReady", DataChannelReceiverMessageReadyEvent)

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

Parâmetros

event

"messageReady"

readMessage()

function readMessage(): undefined | DataChannelMessage

Devoluções

undefined | DataChannelMessage