//使用
import io from 'socket.io-client';
const socket = io('http://118.89.42.149:3333', {
transports: ['websocket'],
});
//报错如下
Setting a timer for a long period of time, i.e. multiple minutes, is a performance and correctness issue on Android as it keeps the timer module awake, and timers can only be called when the app is in the foreground. See https://github.com/facebook/r... for more info.
(Saw setTimeout with duration 85000ms)
请问怎么解决