Dispatch a CustomEvent on one or more elements. The event bubbles by default so parent listeners can catch it.
Optional
emit(el, 'widget:open', { chatId: 123 }); emit([el1, el2], 'ping'); Copy
emit(el, 'widget:open', { chatId: 123 }); emit([el1, el2], 'ping');
Dispatch a CustomEvent on one or more elements. The event bubbles by default so parent listeners can catch it.