openvidu/openvidu-node-client/lib/Session.d.ts

28 lines
876 B
TypeScript
Raw Normal View History

import { SessionProperties } from './SessionProperties';
import { TokenOptions } from './TokenOptions';
2017-06-10 01:44:31 +02:00
export declare class Session {
private hostname;
private port;
2018-03-14 18:48:29 +01:00
private basicAuth;
private static readonly API_SESSIONS;
private static readonly API_TOKENS;
sessionId: string;
properties: SessionProperties;
private Buffer;
2018-03-14 18:48:29 +01:00
constructor(hostname: string, port: number, basicAuth: string, properties?: SessionProperties);
/**
* Gets the unique identifier of the Session
*/
getSessionId(): string;
/**
* Gets a new token associated to Session object
*
* @returns A Promise that is resolved to the _token_ if success and rejected with an Error object if not
*/
generateToken(tokenOptions?: TokenOptions): Promise<string>;
/**
* @hidden
*/
getSessionIdHttp(): Promise<string>;
2017-06-10 01:44:31 +02:00
}