You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the webSocket connect success but just was closed before set the callback, is there any way to check this case?
AsyncHttpClient.getDefaultInstance().websocket(get, "my-protocol", new WebSocketConnectCallback() { @OverRide
public void onCompleted(Exception ex, WebSocket webSocket) {
//....webScoket disconnect because the network not stable
webSocket.setClosedCallback(...);
webSocket.setEndCallback(...);
}
}
The text was updated successfully, but these errors were encountered:
If the webSocket connect success but just was closed before set the callback, is there any way to check this case?
AsyncHttpClient.getDefaultInstance().websocket(get, "my-protocol", new WebSocketConnectCallback() {
@OverRide
public void onCompleted(Exception ex, WebSocket webSocket) {
//....webScoket disconnect because the network not stable
webSocket.setClosedCallback(...);
webSocket.setEndCallback(...);
}
}
The text was updated successfully, but these errors were encountered: