Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't see SignalR traffic in browser development tools

I built server and client code that uses SignalR. The website is working perfectly, but I can't see the web traffic in any browser (chrome, IE, Firefox). I know the web traffic is there because the website is working.

Is there a way to view SignalR Traffic in a browser? If not what is the best external tool for viewing SignalR traffic?

like image 522
GeographicPerspective Avatar asked Apr 21 '15 12:04

GeographicPerspective


2 Answers

Yes, you can view SignalR traffic in Developer Tools (Tested with Chrome).

  1. Open Network Tab.

  2. Click on "WS" to filter out all except Web Socket traffic.

  3. Refresh Page. You will see something like this that shows you the connection was established. Note that you will only see this one line as it only shows that the web socket was connected. Additional traffic is not shown here like you might expect (see below)

enter image description here

  1. Then click on that row, and it will show you the details. Then select the 'Messages' tab. It will then show the messages that are being sent and received in real time. Click on the message to see the binary information.

enter image description here

like image 83
Greg Gum Avatar answered Nov 14 '22 15:11

Greg Gum


you can use Fiddler, see this article :

https://github.com/SignalR/SignalR/wiki/Using-fiddler-with-signalr

like image 1
hmd.ai Avatar answered Nov 14 '22 15:11

hmd.ai