kuzzleio / sdk-jvm

Official Kotlin SDK for Kuzzle
https://kuzzle.io
1 stars 0 forks source link

Connect method doesn't throw on connection failed #48

Closed Shiranuit closed 3 years ago

Shiranuit commented 3 years ago

Expected Behavior

When using the Websocket protocol, if the Host address is either invalid or can't be reached I expect the connect method of the Kuzzle class to throw an Error.

Current Behavior

For now, when the connection has failed, nothing happens and the SDK is blocked indefinitely in whatever controller action there is after the connect, because the request cannot be resolved.

Context (Environment)

SDK JVM 1.2.0 Java 8 Tested on Android 11