- In a SignalR hub class, what method can we use to push data to a group of connected clients?
We can use the following:
Clients.Group("GroupName").SendAsync()
- In a SignalR hub class, what method can we use to push data to all clients except for the client that has made the request?
We can use the following:
Clients.AllExcept(Context.ConnectionId).SendAsync()
- Why did we need a CORS policy for our React app to be able to interact with our SignalR real-time API?
A CORS policy is required because the frontend and backend were hosted in different domains.
- In our React frontend, why did we check whether the connection was in a connected state before subscribing to the question?
If starting ...