Playroom
Create
Log in
Sign up
Roadmap
Feedback
Feature Requests
Boards
Feature Requests
Powered by Canny
Feature Requests
Description
Showing
Trending
posts
Is there a way to "unregister" RPC function? You have RPC.register , but no RPC.unregister which makes problems with react useEffects
0
1
Events for state changes (onChange and onMultiplayerChange)
This would allow users to create their own states inside any framework. For example in SvelteKit you could use: let player = writable<{state: string} | null>(null) myPlayer().onChange((playerState)=>{ player.set(playerState) }) In my example snippet of code, the onChange returns all set player states connected to the player. This single function would eliminate the need of making states work for every framework manually. Currently there is 2 workaround, RPC calls and Polling. Polling is really an outdated method of getting up-to-date data from any source and setting up RPC calls is a hassle to setup compared to React.
0
2
[react] can not pass an arrow function into useMultiplayerState state
When using useMultiplayerState, it doesn't accept arrow function when setting state const [debug, setDebug] = useMultiplayerState('debug',1); setDebug(debug => debug + 1) // doesn't work
0
1
Make SSR compatible
It seems like the library doesn't work on NextJS because it accesses the window object, and the server-side run doesn't have that. Really need SSR!
2
5
Timestamp from server
Very often we need to add a timestamp with an action, for example a chat message sent. but if this timestamp comes from the front, obviously this can be faked. Ideally, there should be a function that will call the backend/server timestamp.
0
2
Lobbies
Instead of always having to share links with people on social media, we could have a public/private listing of games. I think all it takes is saving the roomcode to a public datastore (like Firestore) and then showing the data to the player.
2
5
Getting rid of the "r=R" in url
I would like to have full control over the url, without the "#r=R" that seems mandatory. I was hoping that "baseUrl" was meant to fix that, but unfortunately not. mygame.com/hello or even mygame.com/#hello should be a room in itself
0
2
Optional opt-out of appending hash route roomCode to URL when joining room programmatically
Currently, even if you join a room programmatically via code (instead of joining via link/URL) playroom appends a #r=RSOMEROOMCODE to current window location URL. https://example.com -> https://example.com/#r=RSOMEROOMCODE This breaks some use cases for sites that make use of the hash router like in my case. It would be amazing to optionally opt-out of appending the #r=RSOMEROOMCODE if joining a room programmatically via code. thank you!!
0
4
react-native support
0
3
Kick a player, through code
A function like playerState.kick(), or kickPlayer(playerState) would be great. Needed for a critical app.
2
3
Load More
→
Powered by Canny