Skip to content

Commit fdb23f6

Browse files
committed
Add isConnected to StompClient
1 parent 6258363 commit fdb23f6

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.idea/modules.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.2.0'
8+
classpath 'com.android.tools.build:gradle:2.2.2'
99
classpath 'me.tatarka:gradle-retrolambda:3.3.0'
1010
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
1111

lib/src/main/java/ua/naiksoftware/stomp/client/StompClient.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,4 +196,8 @@ private void unsubscribePath(String dest) {
196196
send(new StompMessage(StompCommand.UNSUBSCRIBE,
197197
Collections.singletonList(new StompHeader(StompHeader.ID, topicId)), null));
198198
}
199+
200+
public boolean isConnected() {
201+
return mConnected;
202+
}
199203
}

0 commit comments

Comments
 (0)