Forum Discussion
grumpnerd
Apr 11, 2024Copper Contributor
Threading problems in SignalR Hub
Hello, I implemented a SignalR Hub to make a game server.
The idea is that when a room is full (4 people in it) I run a new game.
A game:
1. We notify everybody
2. The first player send one data.
3. We switch to next one
4. while the game isn't finished:
Ask the current player two data.
Switch to next player
My problem is that with that simple system, once the client sent the data, the server do nothing, that's why I think there is a data race somewhere that I don't see.
Here is my https://github.com/mehdi-arch/okeygameserver in OkeyServer/ you have the server code, in OkeyScript/ you have all the functions needed for game logic.
Thanks in advance for your help.
No RepliesBe the first to reply