Skip to main content

Client Events

Note

Each of the below client events listeners are instantiated using manager.createEventListener and enabled by using client.attachEvent.

E.g.

// earlier in the Managed Component:
manager.createEventListener('mousedown', async event => {
console.info('🐁 ⬇️ Mousedown:', event.payload)
})

// later in the same component
manager.addEventListener('clientcreated', ({ client }) => {
client.attachEvent('mousedown')
})

The above example establishes a mousedown event listener for each newly created client.