Open Jeff11 opened 5 years ago
Hi @Jeff11 ,
My best guess is that this happens here: https://github.com/pusher/pusher-websocket-java/blob/master/src/main/java/com/pusher/client/connection/websocket/WebSocketConnection.java#L131-L132
i.e. the connection is dropped, but the internal state here is still CONNECTED
. Basically it's a race, and the way the library is currently designed, I don't see how we can prevent that from happening.
My best advice would be to catch that exception, which is would this library should ideally do (i.e. not send the message).
With Pusher 2.0.0 SM-G950F, Android 9