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