nv-websocket-client icon indicating copy to clipboard operation
nv-websocket-client copied to clipboard

Failed to connect to '<address>': null

Open AntonKosov opened this issue 5 years ago • 1 comments

Library version: 2.9 OS: Android 7.1.2

Sometimes, I've got the following error when try to connect:

Failed to connect to '<address>': null

I have no idea what's going on. Here is my code:

webSocket = WebSocketFactory()
    .setConnectionTimeout(5000)
    .createSocket(uri)
    .addListener(WebSocketCallbacks())
    .connect()

Maybe, it would be nice to write more information if there is null in the exception message (SocketConnector:124).

AntonKosov avatar Sep 12 '19 08:09 AntonKosov

Facing the same issue

ValeriiVolkov avatar Feb 24 '20 20:02 ValeriiVolkov