react-native 使用 socket.io 报错

//使用
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)

请问怎么解决

阅读 3.3k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题