We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ac8374 commit 40de1baCopy full SHA for 40de1ba
lib/manager.js
@@ -62,8 +62,9 @@ function Manager (uri, opts) {
62
this.lastPing = null;
63
this.encoding = false;
64
this.packetBuffer = [];
65
- this.encoder = new parser.Encoder();
66
- this.decoder = new parser.Decoder();
+ var _parser = opts.parser || parser;
+ this.encoder = new _parser.Encoder();
67
+ this.decoder = new _parser.Decoder();
68
this.autoConnect = opts.autoConnect !== false;
69
if (this.autoConnect) this.open();
70
}
0 commit comments