smartuniverse/ts/smartuniverse.classes.universeconnection.ts
2019-06-06 23:23:37 +02:00

27 lines
715 B
TypeScript

import * as plugins from './smartuniverse.plugins';
import { UniverseChannel } from './smartuniverse.classes.universechannel';
/**
* represents a connection to the universe
*/
export class UniverseConnection {
/**
* the socketClient to ping
*/
public socketConnection: plugins.smartsocket.SocketConnection;
public authenticationRequests = []
public subscribedChannels: UniverseChannel[] = [];
public authenticatedChannels: UniverseChannel[] = [];
public failedToJoinChannels: UniverseChannel[] = [];
public terminateConnection () {
this.socketConnection
}
constructor(optionsArg: {
socketConnection: plugins.smartsocket.SocketConnection;
}) {
this.socketConnection,
}
}