View message flows in Visual Studio for a signalR chat application

I recently found a .NET tutorial that shows how to create a chat application in Visual Studio using the .NET library, signalr .

I created the application and made several modifications, including some AES encryption. Then I posted it on Windows Azure as a website.

The chat application works and has been tested, but I don’t know how to view messages sent from one user to another.

Can someone tell me where I can find these message flows?

thanks

+8
c # visual-studio-2012 azure
source share
3 answers

All messages will go through the SignalR hub, so you can use breakpoints / debugging points to see what is being sent (if you work in your development environment). Otherwise, you can use tracing in the hub to view messages.

There is an extension to look at what you can use (I have not tested it yet): http://www.nuget.org/packages/Glimpse.SignalR

+5
source share

You can get some performance counters using Microsoft tools .

For what I know, there is no way to receive all messages sent or received from the server. When you need to analyze the relationship of specific clients, try using Wireshark or Microsoft Network Monitor .

You can also write your own message log that writes them to a file.

You can use common methods as Trace.WriteLine to write information to the default receiver. Then use a listener to write to the file / database.

This source can be useful when studying message analysis from a web server.

+1
source share

Fiddler is the best tool for monitoring web traffic. It is stupidly easy to use and has many advanced features to help debug server / client applications. Check out this page for a brief description of using Fiddler with signalr.

Good luck

+1
source share

All Articles