Skip to content

feat(multiplayer): one presence per browser, a better presence bar, and room sharing - #1192

Merged
sadmann7 merged 2 commits into
mainfrom
sadman/multiplayer-fixes
Oct 10, 2026
Merged

sadmann7 merged 2 commits into
mainfrom
sadman/multiplayer-fixes

Conversation

@sadmann7

@sadmann7 sadmann7 commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

Polishes the multiplayer demo now that it runs on PartyServer.

  • A browser's tabs share one presence via a clientId kept in localStorage, so you keep the same name and color across visits
  • Presence bar lists you first, shows everyone's current cell, jumps to it on click, and overflows into a popover
  • Share menu copies the room link, opens a new private room, or goes back to the public one
  • The grid fills the viewport like the other grid demos, and the active cell is only sent when it changes

The grid used a shorter height than the other grid demos. The identity now
lives in localStorage with a clientId, so the same name and color come back
across tabs and visits, and the server groups a browser's tabs into one
user that only joins on the first tab and leaves after the last.
Avatars list you first, show each person's current cell in a tooltip,
jump to it on click, and overflow into a popover listing everyone. Your
own cell now comes from the grid since the server doesn't echo it back.
A Share menu copies the room link, opens a new private room, or returns
to the public one. The room hook's send functions are now stable, so the
active cell is only sent when it changes, and it's re-sent on reconnect.
Copilot AI balanced review requested due to automatic review settings October 10, 2026 16:32
@vercel

vercel Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
tablecn Ready Ready Preview Oct 10, 2026 4:32pm UTC

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@sadmann7
sadmann7 merged commit 304c0db into main Oct 10, 2026
8 checks passed
@sadmann7
sadmann7 deleted the sadman/multiplayer-fixes branch October 10, 2026 16:38

This branch was successfully deployed

1 active deployment
Preview — 7df83b02 Deployed Oct 10, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants