Compartilhar via


DataChannelReceiver interface

Receptor DataChannel

Propriedades

channelId
senderParticipantIdentifier

Métodos

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

Detalhes da propriedade

channelId

channelId: number

Valor da propriedade

number

senderParticipantIdentifier

senderParticipantIdentifier: CommunicationIdentifierKind

Valor da propriedade

Detalhes do 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

Retornos

undefined | DataChannelMessage