DataChannelSender interface

DataChannel-avsändare

Egenskaper

channelId
maxMessageSize

Metoder

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

Egenskapsinformation

channelId

channelId: number

Egenskapsvärde

number

maxMessageSize

maxMessageSize: number

Egenskapsvärde

number

Metodinformation

close()

function close()

sendMessage(Uint8Array)

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

Parametrar

data

Uint8Array

Returer

Promise<void>

setParticipants(CommunicationIdentifier[])

function setParticipants(participants: CommunicationIdentifier[])

Parametrar

participants

CommunicationIdentifier[]