次の方法で共有


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