You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`emit(name, ...args)`| Fans an event out to every connected panel. | Sends an event to the page script, buffering while connecting. |
55
-
|`on(name, listener)`| Subscribes to events emitted by a panel. | Subscribes to events emitted by the page script. Returns an unsubscribe function. |
55
+
|`on(name, listener)`| Subscribes to events emitted by a panel. Returns an unsubscribe function. | Subscribes to events emitted by the page script. Returns an unsubscribe function. |
56
56
|`call(name, ...args)`| Available through a specific `PanelPeer`. | Calls a page-script function and awaits its result. |
57
57
|`events`| Local `panel:connected` / `panel:disconnected` lifecycle events. | Local `status:updated` lifecycle event. |
58
58
|`sharedState`| Owns the authoritative state. | Mirrors the page-script state. |
0 commit comments