Repository navigation
Smocket 0.5.1: multi-tab frontend development with SharedWorker #403
electrohyun
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Smocket 0.5.1 is now available on npm.
Several same-origin tabs can share one caller-owned SharedWorker Smocket server when they use the same browser profile, module worker URL, and worker name. The new public entry points are
attachSharedWorkerfromsmocket/shared-workerandconnectSharedWorkerfromsmocket-client/shared-worker.The release includes a Runnable Drawing Game that uses the same framework-independent application handler with either the in-browser SharedWorker target or a real Node.js Socket.IO server.
This workflow is intended for frontend development before a separate Socket.IO backend is ready. It does not provide production transport, automatic reconnection, persistence, cross-device communication, or the complete Socket.IO Client API. Real backend behavior and production integration still need to be verified with Socket.IO.
All reactions