Skip to content

Commit 0b73e33

Browse files
committed
fix: pub/sub mechanism
1 parent 4c8dfab commit 0b73e33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IMQClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export abstract class IMQClient extends EventEmitter {
217217
* @return {Promise<void>}
218218
*/
219219
public async subscribe(handler: (data: JsonObject) => any): Promise<void> {
220-
return this.subscriptionImq.subscribe(this.name, handler);
220+
return this.subscriptionImq.subscribe(this.serviceName, handler);
221221
}
222222

223223
// noinspection JSUnusedGlobalSymbols

0 commit comments

Comments
 (0)