Example
Parameters
Thesend() method accepts two parameters:
EventType
required
The
type property specifies what type of event you want to send.object
required
The
data property is an object that contains the event data.