Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cocos2dxjs socketIO, disconnect 后重连问题 #1825

Open
Super-Man opened this issue Mar 18, 2016 · 0 comments
Open

cocos2dxjs socketIO, disconnect 后重连问题 #1825

Super-Man opened this issue Mar 18, 2016 · 0 comments

Comments

@Super-Man
Copy link

cocosjs版本是3.6,socketIO 是从cocos2dxjs 3.8 拷贝过来的。 当服务端断掉socket的时候, 客户端接受到 disconnect 事件,然后socket实例调用discnnect(),方法 崩溃。 注释调这个方法后,在定时器中重新初始化socket的时候,表示连接不成功了。
问下,接受到disconnect 后, 如何实现重连呢...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant