android - socket.io does'nt work on chrome mobile, but it does in incognito mode -


i'm working nodejs , socket.io under angularjs.

the sockets work on desktop (all browsers). not on mobile.

well... socket d'ont work on chrome mobile, expect in incognito mode. here bit of code:

server side:

io.on('connection', function(socket){     user = {         id: socket.id,         socket: socket     };     console.log('connection received');     console.log(user.id);     socket.emit('files', lib.all()); 

client side

socket.on('files', function(data){     var streams = data;     if(streams){         $scope.streams = streams;       }  }); 

the lib.all() function work fine. , i've got angular factory handle socket.io (which work fine).

in chrome mobile socket not received or emit anything. work expected in incognito mode. work in firefox android.

i'm not expert in android neither in chrome. suspect there special/strange happening. firewall? proxy?

does know workaround this?

thanks, , have day!

p.s : on chrome desktop emulation enabled it's working fine.

edit: founded what's heck:

chrome mobile 'data saver' option. ths 1 reduce data using google servers.

sockets in trouble passing google servers.. still workaround great.

are using integrity attribute javascript?

i had problem cdn bootstrap.js having sha-256 mismatch, resulted in content being blocked chrome data saver.

i fixed changing src="//my.cdn.js src="https://my.cdn.js


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

javascript - Rivets.js rv-show not working with rv-each -