import { OpenViduRole } from './OpenViduRole'; import { Publisher } from './Publisher'; /** * See [[Session.activeConnections]] */ export declare class Connection { /** * Identifier of the connection. You can call [[Session.forceDisconnect]] passing this property as parameter */ connectionId: string; /** * Timestamp when this connection was established, in UTC milliseconds (ms since Jan 1, 1970, 00:00:00 UTC) */ createdAt: number; /** * Role of the connection */ role: OpenViduRole; /** * Token associated to the connection */ token: string; /** * PRO * Geo location of the connection, with the following format: `"CITY, COUNTRY"` (`"unknown"` if it wasn't possible to locate it) */ location: string; /** * A complete description of the platform used by the participant to connect to the session */ platform: string; /** * Data associated to the connection on the server-side. This value is set with property [[TokenOptions.data]] when calling [[Session.generateToken]] */ serverData: string; /** * Data associated to the connection on the client-side. This value is set with second parameter of method * [Session.connect](/api/openvidu-browser/classes/session.html#connect) in OpenVidu Browser */ clientData: string; /** * Array of Publisher objects this particular Connection is publishing to the Session (each Publisher object has one Stream, uniquely * identified by its `streamId`). You can call [[Session.forceUnpublish]] passing any of this values as parameter */ publishers: Publisher[]; /** * Array of streams (their `streamId` properties) this particular Connection is subscribed to. Each one always corresponds to one * Publisher of some other Connection: each string of this array must be equal to one [[Publisher.streamId]] of other Connection */ subscribers: string[]; /** * @hidden */ constructor(connectionId: string, createdAt: number, role: OpenViduRole, token: string, location: string, platform: string, serverData: string, clientData: string, publishers: Publisher[], subscribers: string[]); /** * @hidden */ equalTo(other: Connection): boolean; }