Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gc committed Jul 24, 2024
1 parent 3cd2e28 commit 2813f25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
7 changes: 2 additions & 5 deletions dist/TSRedis.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions src/TSRedis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,13 @@ export class TSRedis {
}

disconnect() {
return this.redis.disconnect();
return this.redis.disconnect(false);
}

subscribe(callback: (message: Message) => void) {
this.redis.subscribe(CHANNEL_ID, (err, count) => {
this.redis.subscribe(CHANNEL_ID, err => {
if (err) {
console.error('Failed to subscribe: ', err);
} else {
console.log(`Subscribed successfully! This client is currently subscribed to ${count} channels.`);
}
});

Expand Down

0 comments on commit 2813f25

Please sign in to comment.