Skip to content

Commit

Permalink
fix: šŸ› reset output format ton connection reset to avoid json parsingā€¦
Browse files Browse the repository at this point in the history
ā€¦ errors
  • Loading branch information
vpriem committed Jul 1, 2022
1 parent 0d43d51 commit 2391db0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Client.ts
Expand Up @@ -110,6 +110,9 @@ export class Client extends EventEmitter {
super();

this.redis = createClient({ url })
.on('ready', () => {
this.format = Format.RESP;
})
.on('error', (error) => {
/* istanbul ignore next */
this.emit('error', error);
Expand Down

0 comments on commit 2391db0

Please sign in to comment.