共用方式為


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