DataChannelSender interface

Отправитель DataChannel

Свойства

channelId
maxMessageSize

Методы

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

Сведения о свойстве

channelId

channelId: number

Значение свойства

number

maxMessageSize

maxMessageSize: number

Значение свойства

number

Сведения о методе

close()

function close()

sendMessage(Uint8Array)

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

Параметры

data

Uint8Array

Возвращаемое значение

Promise<void>

setParticipants(CommunicationIdentifier[])

function setParticipants(participants: CommunicationIdentifier[])

Параметры

participants

CommunicationIdentifier[]