Skip to content

Commit 0aec997

Browse files
committed
Prepare version 1.0.1
1 parent faebdc3 commit 0aec997

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ repositories {
112112
and then add the library. See [releases](https://github.com/dsrees/JavaPhoenixClient/releases) for the latest version
113113
```$xslt
114114
dependencies {
115-
implementation 'com.github.dsrees:JavaPhoenixClient:1.0.0'
115+
implementation 'com.github.dsrees:JavaPhoenixClient:1.0.1'
116116
}
117117
```
118118

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ apply plugin: "org.jetbrains.dokka"
2525
apply plugin: "com.vanniktech.maven.publish"
2626

2727
group 'com.github.dsrees'
28-
version '1.0.0'
28+
version '1.0.1'
2929

3030
sourceCompatibility = 1.8
3131

src/main/kotlin/org/phoenixframework/Socket.kt

+5-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,11 @@ class Socket(
293293

294294
/** @return True if the connection exists and is open */
295295
val isConnected: Boolean
296-
get() = this.connection?.readyState == Transport.ReadyState.OPEN
296+
get() = this.connectionState == Transport.ReadyState.OPEN
297+
298+
/** @return The ready state of the connection. */
299+
val connectionState: Transport.ReadyState
300+
get() = this.connection?.readyState ?: Transport.ReadyState.CLOSED
297301

298302
//------------------------------------------------------------------------------
299303
// Public

0 commit comments

Comments
 (0)