Freigeben über


DataChannelReceiver interface

DataChannel-Empfänger

Eigenschaften

channelId
senderParticipantIdentifier

Methoden

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

Details zur Eigenschaft

channelId

channelId: number

Eigenschaftswert

number

senderParticipantIdentifier

senderParticipantIdentifier: CommunicationIdentifierKind

Eigenschaftswert

Details zur Methode

off("close", DataChannelReceiverCloseEvent)

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

Parameter

event

"close"

off("messageReady", DataChannelReceiverMessageReadyEvent)

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

Parameter

event

"messageReady"

on("close", DataChannelReceiverCloseEvent)

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

Parameter

event

"close"

on("messageReady", DataChannelReceiverMessageReadyEvent)

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

Parameter

event

"messageReady"

readMessage()

function readMessage(): undefined | DataChannelMessage

Gibt zurück

undefined | DataChannelMessage