Parameters for event.emitTo. Send an event to one window. It receives an event named event whose data is { payload, sourceWindowId }. A window id no open window has fails with NOT_FOUND.
event.emitTo
event
{ payload, sourceWindowId }
NOT_FOUND
Event name the receiver subscribes to.
Optional
Data delivered as payload; absent or null sends an empty object.
payload
null
Id of the window to send to, such as main or the windowId a port reported.
main
windowId
Parameters for
event.emitTo. Send an event to one window. It receives an event namedeventwhose data is{ payload, sourceWindowId }. A window id no open window has fails withNOT_FOUND.