Chapter 6. Persistent connections and hubs from other threads

All server implementations seen up to this point in the book have had something in common: they have always been responding to direct messages from a client. Even though they are push systems, a client has always been initiating the procedure:

  • In a chat, when a user sends a message to the server, this message is sent to the rest of the connected users.

  • In the tracking system that we showed in Chapter 4 a user’s mouse movement was the action that originated the notification to the other users.

  • In the shared drawing board example in Chapter 5 when a user drew a point or pressed the button to erase the canvas, the action was sent to the others so that they could update their whiteboards. ...

Get SignalR Programming in Microsoft ASP.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.