Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: "Match making" #57

Open
GuillaumeSalles opened this issue Feb 8, 2022 · 1 comment
Open

Feature request: "Match making" #57

GuillaumeSalles opened this issue Feb 8, 2022 · 1 comment
Labels
Custom App engine feature request Feature requested by the community

Comments

@GuillaumeSalles
Copy link
Contributor

GuillaumeSalles commented Feb 8, 2022

Feature request from @CTNicholas

https://discord.com/channels/913109211746009108/913157273046646795/938057663055560764


Another handy feature would be a room that automatically generates its own ID, and autofills up to a certain capacity. Once the current room is full, users start filling up a new room. This would be great for public facing pages; Next.js Conf had this feature, with random people's live cursors appearing on screen. It would also be handy for any games built on Liveblocks, as a matchmaking mechanic. Quick example:

  matchmaking="busiest"
  prefix="live-cursors-"
  maxUsers={20}
  onCreate={id => {
    // 'live-cursors-cwg3h46shkd4h4hjshs'
    console.log(id)
  }
/>

I've written matchmaking="busiest" because there could be multiple algorithms for filling the rooms.
Examples:
busiest: When all rooms are full, create a new room. The busiest room is then filled first.
emptiest: When all rooms are full, create a new room. The emptiest room is then filled first.


@GuillaumeSalles GuillaumeSalles changed the title Feature request: Feature request: "Match making" Feb 8, 2022
@captaindev404 captaindev404 added the feature request Feature requested by the community label Feb 8, 2022
@andreaselia
Copy link

It would definitely be cool to get some proper examples/functionality down for how to handle this sort of thing when using Liveblocks to create web games.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Custom App engine feature request Feature requested by the community
Projects
None yet
Development

No branches or pull requests

4 participants