Chrome + Socket.io + Pace = Error
http://blew.io/ -> Problem
I want to disable pace when is a socket.io request.
2014-09-03 08:17:59.515
XHR finished loading: GET "http://blew.io/socket.io/1/?__sails_io_sdk_version=0.10.0&__sails_io_sdk_platform=browser&__sails_io_sdk_language=javascript&t=1409743078945". sails.io.js:2
2014-09-03 08:17:59.853WebSocket connection to 'ws://blew.io/socket.io/1/websocket/UTUCn3cHnNC467BHLGIs?__sails_io_sdk_version=0.10.0&__sails_io_sdk_platform=browser&__sails_io_sdk_language=javascript' failed: Error during WebSocket handshake: Unexpected response code: 503 library.js:15
You could try setting Pace.options.ajax.trackWebSockets to false before this call and set it back to true after the call is complete.
If, however, you want to stop web socket tracking for the whole app, add the trackWebSockets property to the ajax object in your pace options:
window.paceOptions = {
ajax: {
trackWebSockets: false
}
};
@ashclarke thanks, I'll try!
Hi bro,
Thanks for support but with me It's not working :(
@itanhduy check this topic.
https://github.com/HubSpot/pace/issues/305
Having the same issue. Disabling trackWebSockets does not solve it for me neither.
Having the same issue.disable trackWebSockets is not working with this socket request
wss://in.visitors.live/socket.io/?EIO=3&transport=websocket wss://visitors.live/socket.io/?siteId=89321&EIO=3&transport=websocket
Any updates? I am facing same issue with twilio-video
@akvaliya the project doesn't have a commit in a couple years... probably not gonna solve it...