ClientManager

ClientManager

Management class for clients

Constructor

new ClientManager()

This is the constructor
Source:

Methods

dropClient(client)

Removes a client from the client manager. Dropped from the cache and removed from the list of tracked clients in the NeptuneConfig.
Source:
Parameters:
Name Type Description
client Client Client to drop

getClient(clientId) → {Client}

This will return a Client
Source:
Parameters:
Name Type Description
clientId string
Returns:
Type:
Client

getClients() → {Map.<string, Client>}

This will return all the Clients
Source:
Returns:
Type:
Map.<string, Client>

loadClients() → {void}

This will load all the Clients
Source:
Returns:
Type:
void

pair(client, IPAddress) → {Client}

This will pair a new Client
Source:
Parameters:
Name Type Description
client client
IPAddress IPAddress
Returns:
Type:
Client

saveClients() → {void}

This will save the current Clients
Source:
Returns:
Type:
void

unpair(client) → {boolean}

This will unpair the Client
Source:
Parameters:
Name Type Description
client Client
Returns:
Type:
boolean

updateSavedClientsInNeptuneConfig()

Updates the NeptuneConfig.clients array to the current clients we've loaded.
Source: