UNPKG

red5pro-webrtc-sdk

Version:
66 lines (35 loc) 830 B
[**Red5 Pro WebRTC SDK v15.5.0**](../README.md) *** [Red5 Pro WebRTC SDK](../globals.md) / Event # Class: Event Base class for an Event within the Red5 Pro WebRTC SDK. ## Extended by - [`SubscriberEvent`](SubscriberEvent.md) - [`PublisherEvent`](PublisherEvent.md) - [`MessageTransportStateEvent`](MessageTransportStateEvent.md) - [`PubNubEvent`](PubNubEvent.md) - [`MessageChannelEvent`](MessageChannelEvent.md) ## Constructors ### Constructor > **new Event**(`type`, `data?`): `Event` #### Parameters ##### type `string` ##### data? `any` #### Returns `Event` ## Accessors ### data #### Get Signature > **get** **data**(): `any` Get the data associated with the event. ##### Returns `any` *** ### type #### Get Signature > **get** **type**(): `string` Get the type of event. ##### Returns `string`