pace icon indicating copy to clipboard operation
pace copied to clipboard

Pace.stop() causes extra entries in _intercept.bindings for AjaxMonitor.watch

Open luke-ff opened this issue 5 years ago • 1 comments

Tested with chrome and Pace 1.0.2:

  • Set a breakpoint in the constructor of AjaxMonitor and watch getIntercept().bindings
  • load a simple html page with Pace on it
  • call Pace.stop() -> size of getIntercept().bindings will grow with each "Pace.stop()".

This leads to issues when reconnecting WebSockets: Creating a new Websocket triggers Pace.restart, and the request will be watched multiple times.

luke-ff avatar May 23 '19 12:05 luke-ff

I think you have to add below pace options then it will not track Websocket. window.paceOptions = { ajax: { ignoreURLs: ['signalr', '__browserLink', 'browserLinkSignalR'], trackWebSockets: false } }

akvaliya avatar Jul 22 '19 16:07 akvaliya