Cant send message from SignalR to Clients properly #61710
Unanswered
z3r0gr4v17y
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. My project structure is like this:

My app is: admin can create a game and this game will be scheduled to X date. Game has questions, and each question has his own answers. Now clients sends me gameid, and im sending them questions with answers of this game. I want to test sending questions +answers realtime to clients but i cant.
My ui's are .net 8 apps (admin panel is web api, gameserver is empty web project which only contain hubs).
When event happens, from event handler with help of signalr im sending datas sequantially with time interval to clients. Sources are below:
Event handler (infrastructure layer in screenshot):
my hub is (GameServer layer in screenshot):
frontend client is:
services registerations of infrastructure layer:
services registerations of signalr layer:
now my problem is i cant send datas from signalr to clients properly. In console i cant get nothing except "Connected!" message. But im sending "ReceiveQuestion" and other signals to front code.
Logs from console:
What im missing, can anyone help?
Beta Was this translation helpful? Give feedback.
All reactions