Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitec204c7

Browse files
committed
Bumped version
Signed-off-by: Vishal Rana <vr@labstack.com>
1 parent2bbdd6c commitec204c7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎lib/hub.js‎

Lines changed: 3 additions & 3 deletions
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‎

Lines changed: 1 addition & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp