Skip to content

Cant reconnect (if first connect than disconnect is called than connect will not connect) #5

@inspire580i

Description

@inspire580i

Cant reconnect (if first connect than disconnect is called than connect will not connect to web socket)

Problem: WebSocketConnection.java
if (mSocket != null && mSocket.isConnected()) {
throw new WebSocketException("already connected");
}

Solution:
if (isConnected()) {
throw new WebSocketException("already connected");
}

You are welcome

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