We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
请问Application里初始化的全局websocket 如何关闭?使用 Disposable disposable = RxWebSocket.get(BASE_URL).subscribe(); if (disposable != null) { disposable.dispose(); } 关闭后会自动重连,Rxjava2版本
The text was updated successfully, but these errors were encountered:
你没理解对意思,是你在 调用 RxWebSocket.get(BASE_URL).subscribe()后,把返回的Disposable 存起来,然后在要关闭的时候,调用 disposable.dispose();
Sorry, something went wrong.
No branches or pull requests
请问Application里初始化的全局websocket 如何关闭?使用
Disposable disposable = RxWebSocket.get(BASE_URL).subscribe();
if (disposable != null) {
disposable.dispose();
}
关闭后会自动重连,Rxjava2版本
The text was updated successfully, but these errors were encountered: