Book Image

SignalR Real-time Application Cookbook

By : Roberto Vespa
Book Image

SignalR Real-time Application Cookbook

By: Roberto Vespa

Overview of this book

Table of Contents (18 chapters)
SignalR Real-time Application Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

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