Socket.io Client side, is there a way to keep receiving data when lost focus on the broswer?

烂漫一生 提交于 2020-01-25 03:55:11

问题


is there a way to keep receiving data when lost focus on the broswer on Socket.io Client side?

I'm making a multiplayer game test with html5 and nodejs as server, everything works fine, but i have the case that if the client (the game), lost the focus, for example move to another windows or tab, it stops receiving information, then when a i focus again a receive all the data on the queue

来源:https://stackoverflow.com/questions/28916859/socket-io-client-side-is-there-a-way-to-keep-receiving-data-when-lost-focus-on

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!