Book Image

SignalR: Real-time Application Development - Second Edition

By : Einar Ingerbrigsten
Book Image

SignalR: Real-time Application Development - Second Edition

By: Einar Ingerbrigsten

Overview of this book

Table of Contents (19 chapters)
SignalR – Real-time Application Development Second Edition
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
11
Hosting a Server Using Self-hosted OWIN
Index

Digging deeper into the communication


Logging is really helpful and can really save you a lot of time to figure out what is going on. However, sometimes, you need to go even deeper. At times, you need to look at the raw traffic. There are a few ways of doing this.

Looking under the cover with Fiddler

A popular, free, and very good debugging tool to debug HTTP traffic is Fiddler. You can download it for free at http://www.telerik.com/fiddler. It gives you the opportunity to monitor all HTTP requests happening on your computer.

Fiddler sets itself as a proxy between all traffic and in order to get the best experience from it, you need to enable streams, otherwise SignalR will fall back to long-polling, but not immediately (typically after 3-5 seconds), as shown in the following screenshot:

If the browser and server support web sockets, SignalR might choose to use this as its preferred transport. In this case, you want to open up the Log tab, as shown here:

On the Mac OS X side of things, there...