pace icon indicating copy to clipboard operation
pace copied to clipboard

Chrome + Socket.io + Pace = Error

Open marceloboeira opened this issue 12 years ago • 8 comments

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

marceloboeira avatar Sep 03 '14 11:09 marceloboeira

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 avatar Oct 22 '14 16:10 ashclarke

@ashclarke thanks, I'll try!

marceloboeira avatar Oct 22 '14 16:10 marceloboeira

Hi bro,

Thanks for support but with me It's not working :(

andyngdz avatar Nov 13 '16 02:11 andyngdz

@itanhduy check this topic.

https://github.com/HubSpot/pace/issues/305

ar-anvd avatar Nov 13 '16 19:11 ar-anvd

Having the same issue. Disabling trackWebSockets does not solve it for me neither.

cdparra avatar Dec 10 '16 08:12 cdparra

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

capture

nikhilvc avatar Jul 16 '18 12:07 nikhilvc

Any updates? I am facing same issue with twilio-video

akvaliya avatar Sep 03 '19 16:09 akvaliya

@akvaliya the project doesn't have a commit in a couple years... probably not gonna solve it...

marceloboeira avatar Sep 03 '19 18:09 marceloboeira