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