Scarlet icon indicating copy to clipboard operation
Scarlet copied to clipboard

Reconnection terminates after several attempts

Open Realhumanbean1 opened this issue 6 years ago • 1 comments

Hi. I found a problem with reconnecting okhttp websockets on 0.1.7/0.2.3-alpha1. After several attempts the reconnection stops. I think I found a reason. We subscribe on socket event in Connection.open(). But sometimes OkHttpWebSocketEventObserver emit WebSocket.Event.OnConnectionFailed(t) before subscription complete and this event just ignored. Solution - replace PublishProcessor to BehaviorProcessor.

Realhumanbean1 avatar Mar 18 '19 07:03 Realhumanbean1

#66

Realhumanbean1 avatar Mar 18 '19 07:03 Realhumanbean1