Type of event to broadcast.
Creates a new LiveEventTarget
instance.
Scope to use for sending events.
Name of the event to broadcast.
Function to call when an event is sent or received.
Broadcasts an event to any listening LiveEventTarget
instances.
Optional. Partial event object to send. The ILiveEvent.name
,
ILiveEvent.timestamp
, and ILiveEvent.clientId
fields will be automatically populated prior to sending.
The full event, including ILiveEvent.name
,
ILiveEvent.timestamp
, and ILiveEvent.clientId
fields if known.
Generated using TypeDoc
Receives events broadcast by an
LiveEventSource
.All live event targets are also sources. This simplifies the programming model for live event object by letting them create a single object thats capable of broadcasting events to other instances of itself.