smartuniverse/ts/smartuniverse.classes.universeconnection.ts

27 lines
715 B
TypeScript
Raw Normal View History

2019-04-24 16:20:31 +00:00
import * as plugins from './smartuniverse.plugins';
import { UniverseChannel } from './smartuniverse.classes.universechannel';
/**
2019-04-30 17:16:03 +00:00
* represents a connection to the universe
2019-04-24 16:20:31 +00:00
*/
export class UniverseConnection {
/**
* the socketClient to ping
*/
2019-06-06 21:23:37 +00:00
public socketConnection: plugins.smartsocket.SocketConnection;
public authenticationRequests = []
public subscribedChannels: UniverseChannel[] = [];
public authenticatedChannels: UniverseChannel[] = [];
public failedToJoinChannels: UniverseChannel[] = [];
2019-04-24 16:20:31 +00:00
2019-06-06 21:23:37 +00:00
public terminateConnection () {
this.socketConnection
}
2019-04-24 16:20:31 +00:00
2019-06-06 21:23:37 +00:00
constructor(optionsArg: {
socketConnection: plugins.smartsocket.SocketConnection;
}) {
this.socketConnection,
2019-04-24 16:20:31 +00:00
}
2019-06-06 21:23:37 +00:00
}