This demo shows how you can use Y-Sweet with a VanillaJS project.
This demo requires a connection string for a running Y-Sweet server. You can get one by creating a Y-Sweet service and generating a connection string at app.jamsocket.com, or by running the y-sweet server yourself.
npm install
npm run dev
- In another terminal,
CONNECTION_STRING=<your-connection-string> npm run server
- Open http://localhost:3000 in your browser.