Skip to main content

smocket docs

TL;DR Start with the README quick start, choose the test-runner or SharedWorker workflow that matches your application, then use the scope, differences, conformance, and troubleshooting pages to answer exact questions.

This page is published at smocket-site.vercel.app/docs.

Start with Smocket

Smocket reproduces Socket.IO's in-memory delivery and routing rules so frontend and application tests can exercise rooms, namespaces, broadcasts, and acknowledgements without starting a network server. The README quick start is the shortest executable setup and remains the canonical installation example.

From there, choose the path that matches the code you have:

  1. Keep an application's socket.io-client import with the test-runner integration guide.
  2. Choose among the four supported imports in the package entry-point guide.
  3. Share one caller-owned mock server across same-origin browser tabs with the SharedWorker workflow.
  4. Check the scope boundary and differences from real Socket.IO before relying on an unverified surface.
  5. Use the troubleshooting guide when setup fails before the first application event.

Understand the guarantees

Maintain the project

English documentation is authoritative. Maintained Korean entry points are limited to the repository README and contribution guide so the project does not promise to synchronize every page.