Your listener id (must be unique for all project events)
Your listener function
// Each time a new project is loaded will display the new project id in the console
JMap.Event.Project.on.projectChange(
"custom-project-change",
params => console.log(`New project id="${params.project.id}"`)
)
JMap.Event.Project.on.projectChange
This event is triggered when a new project is loaded.