Home Reference Source
public class | source

NodesList

You can directly use an instance of this class. nodesList

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

emitter: *

public

nodes: *[]

public

Method Summary

Public Methods
public
public

countNodeSocketByAddress(sckAddress: *, connectionType: *): {"countUUIDs": *, "countIPs": *}

public

countNodesByConnectionType(connectionType: *, fallback: *): *

public

countNodesByType(nodeType: *): *

public

disconnectAllNodes(connectionType: *)

public

disconnectAllNodesByConsensusType(nodeConsensusType: *)

public
public

async disconnectSocket(socket: *, connectionType: *): boolean

public

getNodesByConnectionType(connectionType: *, fallback: *): *

public

getNodesByType(type: *): *

public
public

async registerUniqueSocket(socket: *, connectionType: *, nodeType: *, nodeConsensusType: *, validationDoubleConnectionsTypes: *): boolean

public
public

searchNodeSocketByAddress(sckAddress: *, connectionType: *, validationDoubleConnectionsTypes: *): *

Public Constructors

public constructor() source

Public Members

public emitter: * source

public nodes: *[] source

public nodesTotal: number source

Public Methods

public countFallbacks(): * source

Return:

*

public countNodeSocketByAddress(sckAddress: *, connectionType: *): {"countUUIDs": *, "countIPs": *} source

Params:

NameTypeAttributeDescription
sckAddress *
connectionType *

Return:

{"countUUIDs": *, "countIPs": *}

public countNodesByConnectionType(connectionType: *, fallback: *): * source

Params:

NameTypeAttributeDescription
connectionType *
fallback *

Return:

*

public countNodesByType(nodeType: *): * source

Params:

NameTypeAttributeDescription
nodeType *

Return:

*

public disconnectAllNodes(connectionType: *) source

Params:

NameTypeAttributeDescription
connectionType *
  • optional

public disconnectAllNodesByConsensusType(nodeConsensusType: *) source

Params:

NameTypeAttributeDescription
nodeConsensusType *

public disconnectFromFallbacks() source

public async disconnectSocket(socket: *, connectionType: *): boolean source

Params:

NameTypeAttributeDescription
socket *
connectionType *

Return:

boolean

public getNodesByConnectionType(connectionType: *, fallback: *): * source

Params:

NameTypeAttributeDescription
connectionType *
fallback *
  • optional
  • default: undefined

Return:

*

public getNodesByType(type: *): * source

Params:

NameTypeAttributeDescription
type *

Return:

*

public recalculateSocketsLatency() source

public async registerUniqueSocket(socket: *, connectionType: *, nodeType: *, nodeConsensusType: *, validationDoubleConnectionsTypes: *): boolean source

Params:

NameTypeAttributeDescription
socket *
connectionType *
nodeType *
nodeConsensusType *
validationDoubleConnectionsTypes *

Return:

boolean

public removeDisconnectedSockets() source

public searchNodeSocketByAddress(sckAddress: *, connectionType: *, validationDoubleConnectionsTypes: *): * source

Params:

NameTypeAttributeDescription
sckAddress *
connectionType *
validationDoubleConnectionsTypes *

Return:

*