Home Reference Source
public class | source

NodeSignalingServerProtocol

You can directly use an instance of this class. nodeSignalingServerProtocol

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

connectWebPeer(client1: *, client2: *): boolean

public
Private Methods
private

_clientIsNotAcceptingAnymoreWebPeers(client: *, connection: *)

private

_initializeClient1(client1: *)

private

_initializeClient2(client2: *)

Public Constructors

public constructor() source

Public Methods

public connectWebPeer(client1: *, client2: *): boolean source

Params:

NameTypeAttributeDescription
client1 *
client2 *

Return:

boolean

public initializeSignalingServerService(socket: *) source

Params:

NameTypeAttributeDescription
socket *

Private Methods

private _clientIsNotAcceptingAnymoreWebPeers(client: *, connection: *) source

Params:

NameTypeAttributeDescription
client *
connection *

private _initializeClient1(client1: *) source

Params:

NameTypeAttributeDescription
client1 *

private _initializeClient2(client2: *) source

Params:

NameTypeAttributeDescription
client2 *