VS2013 RTM making once per second Signal R request

2019-06-18 07:58发布

问题:

When I check with Fiddler I see my new install of VS2013 is giving Continuous Signal R requests. I don't use anything to do with this in my application. How can I stop these requests which I assume are part of VS2013 trying to sync up something?

回答1:

It's probably due to the BrowserLink feature mentioned here. BrowserLink uses SignalR to communicate between VS and your browsers.



回答2:

Maybe log out of VisualStudio? It might also help if you tell us where VS is communicating to...



回答3:

There seem to be two additional calls made by the browser-link:

  • a one off call made on a page render, on the same port as the site exchanging information about the mapping between Razor views and the elements. This call has __browserlink at the start of the URL.
  • a periodic call as part of the SignalR synchronisation. This has SignalR about 30 characters into the URL.

The former, a single call, I can live with. The other fills up my capture history.

To avoid this, in fiddler I've used the 'Hide the following Hosts' option in the Filter Tab and put something like localhost:62533 in the text box. Note that port number seems to change with each restart of VS2013.

As long as the 'Use Filters' is checked, I still see the traffic I want to (plus a one-off call for __browserlink).