JavaScript Runtime APIs - AddEventListener
How it works
The addEventListener function defines the trigger for the execution of JavaScript code to receive the request data. The event listener type is fetch
and gets the fetchEvent
Syntax
Properties
-
type:
string
- the supported type isfetch
. -
listener:
function
- the function that handles incoming Azion Cells events.
Example
For more information on addEventListener visit MDN Web Docs.