SignalR Realtime Application Cookbook
上QQ阅读APP看书,第一时间看更新

Chapter 2. Using Hubs

In this chapter, we will cover:

  • Adding a method to a Hub and counting the calls to it
  • Calling back the caller from a Hub's method
  • Broadcasting to all connected clients
  • Adding a connection to a group
  • Removing a connection from a group
  • Broadcasting to all connected clients except the caller
  • Broadcasting to all clients except the specified ones
  • Broadcasting to all clients in a group except the caller
  • Broadcasting from outside a Hub
  • Using the return value of a Hub method