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

34 lines
928 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:
* - `signal`: dispatched by [[Session]]
* - `signal:TYPE`: dispatched by [[Session]]
*/
export declare class SignalEvent extends Event {
/**
* The type of signal (can be empty).
*
* The client must be subscribed to `Session.on('signal:type', function(signalEvent) {...})` to receive this object in the callback.
*
* Subscribing to `Session.on('signal', function(signalEvent) {...})` will trigger all types of signals.
*/
type: string;
/**
* The message of the signal (can be emtpy)
*/
data: string;
/**
* The client that sent the signal
*/
from: Connection;
/**
* @hidden
*/
constructor(target: Session, type: string, data: string, from: Connection);
/**
* @hidden
*/
callDefaultBehaviour(): void;
}