Skip to content

Commit 390b3bf

Browse files
Update README for consumer.unsubscribeAndDisconnect()
1 parent 69c519e commit 390b3bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ subscription.perform("away");
8686
JsonObject params = new JsonObject();
8787
params.addProperty("foo", "bar");
8888
subscription.perform("appear", params);
89+
90+
// 6. Unsubscribe & close connection
91+
consumer.unsubscribeAndDisconnect();
8992
```
9093

9194
### Passing Parameters to Channel

0 commit comments

Comments
 (0)