2019-04-30 17:16:03 +00:00
|
|
|
import * as plugins from './smartuniverse.plugins';
|
2019-06-06 20:22:45 +00:00
|
|
|
import { UniverseConnection } from './smartuniverse.classes.universeconnection';
|
2019-04-30 17:16:03 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* manages connections to a universe
|
|
|
|
*/
|
|
|
|
export class UniverseConnectionManager {
|
2019-06-06 20:22:45 +00:00
|
|
|
public connectionMap = new plugins.lik.Objectmap<UniverseConnection>();
|
2019-04-30 17:16:03 +00:00
|
|
|
|
2019-06-07 09:49:10 +00:00
|
|
|
public async addConnection(universeConnectionArg: UniverseConnection) {
|
|
|
|
let universeConnection = universeConnectionArg;
|
|
|
|
universeConnection = await this.deduplicateUniverseConnection(universeConnection);
|
|
|
|
universeConnection = this.authenticateAuthenticationRequests();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* deduplicates UniverseConnections
|
|
|
|
*/
|
|
|
|
public deduplicateUniverseConnection (universeConnectionArg: UniverseConnection): Promise<UniverseConnection> {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* authenticate AuthenticationRequests
|
|
|
|
*/
|
|
|
|
public authenticateAuthenticationRequests(universeConnectionArg) {
|
|
|
|
|
|
|
|
}
|
2019-06-06 21:23:37 +00:00
|
|
|
}
|