Skip to content

Commit ec204c7

Browse files
committed
Bumped version
Signed-off-by: Vishal Rana <[email protected]>
1 parent 2bbdd6c commit ec204c7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/hub.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ class Hub {
1818
}
1919
})
2020
this.client.on('message', (topic, message) => {
21-
this.handlers[topic](message.toString())
21+
this.handlers[topic](message)
2222
})
2323
// this.client.on('end', () => {
2424
// })
2525
}
2626

2727
publish(topic, message) {
28-
this.client.publish(topic, message)
28+
this.client.publish(`${this.accountID}/${topic}`, message)
2929
}
3030

3131
subscribe(topic, handler) {
@@ -35,7 +35,7 @@ class Hub {
3535
}
3636

3737
unsubscribe(self, topic) {
38-
this.client.unsubscribe(topic)
38+
this.client.unsubscribe(`${this.accountID}/${topic}`)
3939
}
4040

4141
disconnect(self) {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "labstack",
3-
"version": "0.31.6",
3+
"version": "0.31.8",
44
"description": "Official Node.js client library for the LabStack platform",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)