2017-06-10 01:44:31 +02:00
|
|
|
import { TokenOptions } from './TokenOptions';
|
|
|
|
export declare class Session {
|
|
|
|
private urlOpenViduServer;
|
|
|
|
private secret;
|
|
|
|
private sessionIdURL;
|
|
|
|
private tokenURL;
|
|
|
|
private sessionId;
|
|
|
|
private hostname;
|
|
|
|
private port;
|
|
|
|
constructor(urlOpenViduServer: string, secret: string);
|
|
|
|
getSessionId(callback: Function): string;
|
2017-06-19 10:16:14 +02:00
|
|
|
generateToken(callback: Function): any;
|
|
|
|
generateToken(tokenOptions: TokenOptions, callback: Function): any;
|
2017-06-10 01:44:31 +02:00
|
|
|
private getBasicAuth();
|
|
|
|
private setHostnameAndPort();
|
|
|
|
}
|