-
Notifications
You must be signed in to change notification settings - Fork 738
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
长连接手动断开和重连 #1337
Comments
Via Google Translate since I don't speak Chinese:
Are you asking about subscriptions or some other kind of long connection? |
Here's Apple's documentation on handling lifecycle changes - The short answer is that you will probably want to call Note that names are different in the Scene delegate if you're using that, but I don't think you are since you're using a singleton rather than per-scene instances of Let me know if that helps! |
是的,这个地方使用的是单例.多个订阅消息在这里接受,然后进行分发处理. 是通过 self.webSocketTransport.closeConnection() 断开订阅么 |
Google translated:
Ah, because The good news is #1335 will add the ability to reconnect more easily. Until then you'll probably need to hack it by using either |
#1335 is merged to |
你好
如何在 APP 进入后台时,手动断开长连接,从新打卡 APP 时再重新连接长连接?
The text was updated successfully, but these errors were encountered: