Skip to content

WebSocket connection error in Socket.java file under "onFailure" Method #50

Open

Description

@Zulqarnain-Mustafa

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions