-
Notifications
You must be signed in to change notification settings - Fork 3
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
Android真机多个连接问题 #2
Comments
自定义组件编译模式app端 websocket 存在一些兼容问题,临时解决方案:使用非自定义组件编译模式或者使用插件 plus-websocket |
你好,可能之前描述的不太清楚。我使用的就是当前的plus-websocket插件,编译模式为“自定义组件模式”。在app端,当我同时打开三个连接,并连接成功时,出现某一个连接的onOpen监听事件不触发;在app退出的onHide方法中我同时关闭三个连接时,也会出现某个连接关闭成功不触发onClose事件。 关闭: |
是不是当创建或者关闭多个websocket的时机接近的时候容易出现? |
嗯嗯,是的。 |
HBuilderX 2.3.0 发布,已优化 websocket |
同时打开两个不同地址的websocket,在web端都是正常的,但在Android真机上偶尔其中一个socketTask.onOpen并不会触发,在websocket服务端查看连接是成功的。
The text was updated successfully, but these errors were encountered: