Allow to unsubscribe from ws topic

This commit is contained in:
Stefan Aebischer
2019-09-16 14:35:39 +02:00
parent b6d2803a49
commit 5caa65fedf
2 changed files with 15 additions and 0 deletions

View File

@@ -37,6 +37,10 @@ to the server once connection has been lost.
- `topics` {String|Array} Single topic as string or multiple topics as array of strings.
Subscribe to one or multiple topics. See [available topics](#available-topics)
### ws.unsubscribe(topics)
- `topics` {String|Array} Single topic as string or multiple topics as array of strings.
Unsubscribe from one or multiple topics.
### ws.close()