DataChannelSender interface

DataChannel sender

Properties

channelId
maxMessageSize

Methods

close()
sendMessage(Uint8Array)
setParticipants(CommunicationIdentifier[])

Property Details

channelId

channelId: number

Property Value

number

maxMessageSize

maxMessageSize: number

Property Value

number

Method Details

close()

function close()

sendMessage(Uint8Array)

function sendMessage(data: Uint8Array): Promise<void>

Parameters

data

Uint8Array

Returns

Promise<void>

setParticipants(CommunicationIdentifier[])

function setParticipants(participants: CommunicationIdentifier[])

Parameters

participants

CommunicationIdentifier[]