openvidu/openvidu-browser/lib/OpenViduInternal/Events/ConnectionEvent.d.ts

30 lines
762 B
TypeScript
Raw Normal View History

2018-04-26 15:33:47 +02:00
import { Event } from './Event';
import { Session, Connection } from '../..';
/**
* Defines the following events:
* - `connectionCreated`: dispatched by [[Session]]
* - `connectionDestroyed`: dispatched by [[Session]]
*/
export declare class ConnectionEvent extends Event {
/**
* Connection object that was created or destroyed
*/
connection: Connection;
/**
* For 'connectionDestroyed' event:
* - "disconnect"
* - "networkDisconnect"
*
* For 'connectionCreated' empty string
*/
reason: string;
/**
* @hidden
*/
constructor(cancelable: boolean, target: Session, type: string, connection: Connection, reason: string);
/**
* @hidden
*/
callDefaultBehaviour(): void;
}