Sdílet prostřednictvím


DataChannelSender interface

Odesílatel datového zdroje

Vlastnosti

channelId
maxMessageSize

Metody

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

Podrobnosti vlastnosti

channelId

channelId: number

Hodnota vlastnosti

number

maxMessageSize

maxMessageSize: number

Hodnota vlastnosti

number

Podrobnosti metody

close()

function close()

sendMessage(Uint8Array)

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

Parametry

data

Uint8Array

Návraty

Promise<void>

setParticipants(CommunicationIdentifier[])

function setParticipants(participants: CommunicationIdentifier[])

Parametry

participants

CommunicationIdentifier[]