首页 > 解决方案 > socket.io slow on mobile device

问题描述

I have a node.js app that sends live data to the client via socket.io (Websocket transport) to draw a canvas (the client receives and uses data to draw to canvas).

I use socket.io-client to connect to the socket.io server. This works fine (at least to an extent) on PC but very slow on mobile devices (that support WebSocket).

Note: App is hosted on Azure and I am saying most data on Local Storage for better performance.

What can be the cause of the lagging and frequent disconnection on mobile phones but good connections on PCs?

标签: node.jssocket.io

解决方案


推荐阅读