Home Reference Source
public class | source

NodeWebPeerRTC

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public

emitter: *

public

peer: *

public

socket: *

Private Members
private

_messages: *[]

Method Summary

Public Methods
public
public
public

async createPeer(initiator: *, socketSignaling: *, signalingServerConnectionId: *, callbackSignalingServerSendIceCandidate: *, remoteAddress: *, remoteUUID: *, remotePort: *, level: *)

public

createSignal(inputSignal: *): *

public
public
public

extractCharsUntilInvalid(str: *, pos: *, invalidChars: *): *

public

extractValueFromDescription(str: *, text: *): *

public

async initializePeer(validationDoubleConnectionsTypes: *): boolean

public

async joinAnswer(inputSignal: *): *

public

processDescription(description: *): {"address": *, "port": *}

public
Private Methods
private

_findMessages(id: *): *

Public Constructors

public constructor() source

Public Members

public connected: boolean source

public disconnected: boolean source

public emitter: * source

public peer: * source

public socket: * source

Private Members

private _messages: *[] source

Public Methods

public checkDataChannelState() source

public checkValidRemoteAddress(ip: *): boolean source

Params:

NameTypeAttributeDescription
ip *

Return:

boolean

public async createPeer(initiator: *, socketSignaling: *, signalingServerConnectionId: *, callbackSignalingServerSendIceCandidate: *, remoteAddress: *, remoteUUID: *, remotePort: *, level: *) source

Params:

NameTypeAttributeDescription
initiator *
socketSignaling *
signalingServerConnectionId *
callbackSignalingServerSendIceCandidate *
remoteAddress *
remoteUUID *
remotePort *
level *

public createSignal(inputSignal: *): * source

Params:

NameTypeAttributeDescription
inputSignal *

Return:

*

public createSignalInitiator(): * source

Return:

*

public enableEventsHandling() source

public extractCharsUntilInvalid(str: *, pos: *, invalidChars: *): * source

Params:

NameTypeAttributeDescription
str *
pos *
invalidChars *

Return:

*

public extractValueFromDescription(str: *, text: *): * source

Params:

NameTypeAttributeDescription
str *
text *

Return:

*

public async initializePeer(validationDoubleConnectionsTypes: *): boolean source

Params:

NameTypeAttributeDescription
validationDoubleConnectionsTypes *

Return:

boolean

public async joinAnswer(inputSignal: *): * source

Params:

NameTypeAttributeDescription
inputSignal *

Return:

*

public processDescription(description: *): {"address": *, "port": *} source

Params:

NameTypeAttributeDescription
description *

Return:

{"address": *, "port": *}

public setupDataChannel() source

Private Methods

private _findMessages(id: *): * source

Params:

NameTypeAttributeDescription
id *

Return:

*