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
{{ message }}
Repository navigation
WebSocket connection error in Socket.java file under "onFailure" Method #50
We are using this library to get images from phoenix socket and showing these images in image view but Sometimes on slow internet connection, I got an exception: Failed to read message payload and payload call the close method. This happens under "onMessage" method under Socket.java class. Following is the method: } catch (IOException e) { LOG.log(Level.SEVERE, "Failed to read message payload", e); } finally { payload.close(); } }
After that "onFailure" method called and it goes to the following condition: if (reconnectOnFailure) { scheduleReconnectTimer(); }
But after that phoenix Socket never gets connected and start a loop of above-mentioned exception. Can you please help me how to fix it or how can we notify our activity that exception occur and we dismiss our activity. Thanks
Activity