3 ms·
Can someone explain me how it's syncing the state between two different devices without any activity in the Network tab in DevTools, not even WS traffic? I get
by pqdbr 3y ago
Can someone explain me how it's syncing the state between two different devices without any activity in the Network tab in DevTools, not even WS traffic?
I get that you can sync state between browser tabs, but I'm trying on two different devices (iPhone and Desktop).
And as far as I can tell, the Wasm layer can't perform network requests directly.
UPDATE: In the console tab I can see 'coordinatorUrl: 'wss://sqlsync.orbitinghail.workers.dev', but I was expecting to see this Websockets connection in the Network tab, and it isn't.
- jasonjmcghee 3y agoWebsockets tracking in the browser can be weird. Try refreshing the page while you have WS selected in the Network tab
- pqdbr 3y agoI did that!
- carlsverre 3y agoGood catch! SQLSync runs in a shared worker to enable cross-tab reactivity and centralise both local storage and the replication system. You can inspect the worker at the magic url: chrome://inspect/#workers