DataChannelReceiver interface

DataChannel receiver

Properties

channelId
senderParticipantIdentifier

Methods

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

Property Details

channelId

channelId: number

Property Value

number

senderParticipantIdentifier

senderParticipantIdentifier: CommunicationIdentifierKind

Property Value

Method Details

off("close", DataChannelReceiverCloseEvent)

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

Parameters

event

"close"

off("messageReady", DataChannelReceiverMessageReadyEvent)

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

Parameters

event

"messageReady"

on("close", DataChannelReceiverCloseEvent)

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

Parameters

event

"close"

on("messageReady", DataChannelReceiverMessageReadyEvent)

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

Parameters

event

"messageReady"

readMessage()

function readMessage(): undefined | DataChannelMessage

Returns

undefined | DataChannelMessage