Skip to content

Commit 2240519

Browse files
author
Sergii Zhevzhyk
committed
Improve error messages for channel attach when realtime is not active
1 parent 558d886 commit 2240519

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/src/main/java/io/ably/lib/transport/ConnectionManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class ConnectionManager implements ConnectListener {
5555
* default errors
5656
***********************************/
5757

58-
static ErrorInfo REASON_CLOSED = new ErrorInfo("Connection closed by client", 200, 10000);
58+
static ErrorInfo REASON_CLOSED = new ErrorInfo("Can't attach when not in an active state", 200, 10000);
5959
static ErrorInfo REASON_DISCONNECTED = new ErrorInfo("Connection temporarily unavailable", 503, 80003);
6060
static ErrorInfo REASON_SUSPENDED = new ErrorInfo("Connection unavailable", 503, 80002);
6161
static ErrorInfo REASON_FAILED = new ErrorInfo("Connection failed", 400, 80000);

0 commit comments

Comments
 (0)