Home > @uniformdev/canvas > createEventBus

createEventBus() function

Creates an event bus client to receive updates from Canvas IMPORTANT: in a server-side context this will always return undefined IMPORTANT: in a browser context this is cached in window and does not create multiple instances

Signature:

Returns:

Promise<PreviewEventBus | undefined>