Welcome to my simple SignalR Blazor demo!
Unlike the other projects I have done recently. I have had no experience with this tech stack.I have however, expirmented with this type of functionality many years ago. I have to say this is a huge improvement.
I managed to throw together this simple dice game in a day. It's pretty rough, and there are some
unaddressed bugs around the edge cases of new players joining or dropping off mid-game. There is also a 5 WebSocket limit
for the free Azure App Service. That said, it mostly works and with very little effort.
I am looking forward to working with SignalR more. I am already thinking of new things to try. 😁
You can check out the repo here.
Play the dice game here!
- Unless you want to win every roll. You'll need additional players.
- You can compete against yourself by clicking the +Add player link and rolling in the new tab.
- Players can join after the game is completed but before it is reset to add their rolls.
- (Bug) Players that disconnect will have their scores removed. But this will not be reflected until another roll is made.
- (Bug) The Azure free app service only allows for 5 players. Additional players will error out and will not be counted.