DataChannelReceiver interface

DataChannel-mottagare

Egenskaper

channelId
senderParticipantIdentifier

Metoder

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

Egenskapsinformation

channelId

channelId: number

Egenskapsvärde

number

senderParticipantIdentifier

senderParticipantIdentifier: CommunicationIdentifierKind

Egenskapsvärde

Metodinformation

off("close", DataChannelReceiverCloseEvent)

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

Parametrar

event

"close"

off("messageReady", DataChannelReceiverMessageReadyEvent)

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

Parametrar

event

"messageReady"

on("close", DataChannelReceiverCloseEvent)

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

Parametrar

event

"close"

on("messageReady", DataChannelReceiverMessageReadyEvent)

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

Parametrar

event

"messageReady"

readMessage()

function readMessage(): undefined | DataChannelMessage

Returer

undefined | DataChannelMessage