2017-06-10 01:44:31 +02:00
|
|
|
import { TokenOptions } from './TokenOptions';
|
2018-01-27 19:39:49 +01:00
|
|
|
import { SessionProperties } from './SessionProperties';
|
2017-06-10 01:44:31 +02:00
|
|
|
export declare class Session {
|
|
|
|
private urlOpenViduServer;
|
|
|
|
private secret;
|
|
|
|
private sessionIdURL;
|
|
|
|
private tokenURL;
|
|
|
|
private sessionId;
|
2018-01-27 19:39:49 +01:00
|
|
|
private properties;
|
2017-06-10 01:44:31 +02:00
|
|
|
private hostname;
|
|
|
|
private port;
|
2018-01-27 19:39:49 +01:00
|
|
|
constructor(urlOpenViduServer: string, secret: string, properties?: SessionProperties);
|
2017-09-04 17:22:46 +02:00
|
|
|
getSessionId(callback: Function): void;
|
2017-06-19 10:16:14 +02:00
|
|
|
generateToken(callback: Function): any;
|
|
|
|
generateToken(tokenOptions: TokenOptions, callback: Function): any;
|
2018-01-27 19:39:49 +01:00
|
|
|
getProperties(): SessionProperties;
|
2017-06-10 01:44:31 +02:00
|
|
|
private getBasicAuth();
|
|
|
|
private setHostnameAndPort();
|
|
|
|
}
|