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[]