smartuniverse/ts/smartuniverse.classes.universechannel.ts

36 lines
750 B
TypeScript
Raw Normal View History

2018-04-13 13:45:48 +00:00
import * as plugins from './smartuniverse.plugins';
2018-04-29 12:17:26 +00:00
import { Objectmap } from 'lik';
2018-04-13 13:45:48 +00:00
/**
2018-04-29 12:17:26 +00:00
* enables messages to stay within a certain scope.
2018-04-13 13:45:48 +00:00
*/
export class UniverseChannel {
2018-04-29 12:17:26 +00:00
/**
* stores the channels that are available within the universe
*/
public static channelStore = new Objectmap();
2018-05-07 16:50:07 +00:00
/**
* the credentials for the channel
*/
private credentials: {
user: string;
password: string;
};
2018-04-29 12:17:26 +00:00
/**
* creates new channels
* @param channelArg the name of the topic
* @param secretArg the secret thats used for a certain topic.
*/
public static createChannel = (channelArg: string, secretArg: string) => {
2018-04-13 13:45:48 +00:00
};
/**
* authenticates a client on the server side
*/
async authenticateClient() {}
}