2018-04-26 15:33:47 +02:00
|
|
|
import { Event } from './Event';
|
2018-05-08 13:01:34 +02:00
|
|
|
import { Connection } from '../../OpenVidu/Connection';
|
|
|
|
import { Session } from '../../OpenVidu/Session';
|
2018-04-26 15:33:47 +02:00
|
|
|
/**
|
|
|
|
* 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:
|
2018-05-08 10:40:46 +02:00
|
|
|
* - "disconnect": the remote user has called `Session.disconnect()`
|
2018-07-11 11:47:53 +02:00
|
|
|
* - "forceDisconnectByUser": the remote user has been evicted from the Session by other user calling `Session.forceDisconnect()`
|
|
|
|
* - "forceDisconnectByServer": the remote user has been evicted from the Session by the application
|
|
|
|
* - "sessionClosedByServer": the Session has been closed by the application
|
2018-05-08 10:40:46 +02:00
|
|
|
* - "networkDisconnect": the remote user network connection has dropped
|
2018-04-26 15:33:47 +02:00
|
|
|
*
|
|
|
|
* For 'connectionCreated' empty string
|
|
|
|
*/
|
|
|
|
reason: string;
|
|
|
|
/**
|
|
|
|
* @hidden
|
|
|
|
*/
|
|
|
|
constructor(cancelable: boolean, target: Session, type: string, connection: Connection, reason: string);
|
|
|
|
/**
|
|
|
|
* @hidden
|
|
|
|
*/
|
2018-07-11 11:47:53 +02:00
|
|
|
callDefaultBehavior(): void;
|
2018-04-26 15:33:47 +02:00
|
|
|
}
|