File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff line change 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" : {
You can’t perform that action at this time.
0 commit comments