Socket.io in node.js does not work on 3G mobile network

socket.io in node.js does not work on a 3G mobile network.

I already tried:

 io.set("transports", ["xhr-polling"]);
 io.set('browser client minification', true);
 io.set('browser client etag', true);
+4
source share
2 answers

Mobile networks do all kinds of things to distort data. Very often there are aggressive proxies, data compression and conversion, as well as poor compliance with specifications along the way.

I noticed in particular that WebSockets connections often fail. You do everything right only by providing AJAX vehicles. If this fails, you cannot solve the problem.

Socket.IO , 80. , Sprint - 3000, 80.

+3

:

io.set("transports", ["xhr-polling"]);

socket.io , . ,

+1

Source: https://habr.com/ru/post/1532498/


All Articles