ci: publish packages [skip actions]
- @cardano-sdk/[email protected] - @cardano-sdk/[email protected]
- @cardano-sdk/[email protected] - @cardano-sdk/[email protected]
Service Workers using dynamic imports (e.g. `import('./index')`) miss
the first runtime.onConnect event because the listener is registered
lazily inside exposeApi. Exporting getBackgroundMessenger allows the
SW entrypoint to register the listener synchronously before the
dynamic import completes.
When runtime.lastError is set, the messenger will reconnect — so disconnect$ should not fire. Previously it was emitted unconditionally, causing RemoteApiShutdownError on the first DApp connector call after a Service Worker wake-up.