nikgraf / partykit-repro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Steps to reproduce

pnpm install
pnpm dev
  1. visit localhost:1999
  2. click the button: "Send Test data to server"
  3. See data coming in and get displayed in the browsers
  4. Refresh the page (data is loaded upon onConnect)
  5. click the button: "Reset Session …" - in the server logs you can see the entry is empty
  6. Refresh the page (data is loaded upon onConnect): but it should be deleted?!

🎈 backend

Welcome to the party, pal!

This is a Partykit project, which lets you create real-time collaborative applications with minimal coding effort.

server.ts is the server-side code, which is responsible for handling WebSocket events and HTTP requests. client.ts is the client-side code, which connects to the server and listens for events.

You can start developing by running npm run dev and opening http://localhost:1999 in your browser. When you're ready, you can deploy your application on to the PartyKit cloud with npm run deploy.

Refer to our docs for more information: https://github.com/partykit/partykit/blob/main/README.md. For more help, reach out to us on Discord, GitHub, or Twitter.

About


Languages

Language:TypeScript 99.0%Language:HTML 0.7%Language:CSS 0.3%