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.
2 parents e0f9400 + c966e71 commit 7e6760aCopy full SHA for 7e6760a
src/centrifuge.ts
@@ -461,7 +461,7 @@ export class Centrifuge extends (EventEmitter as new () => TypedEventEmitter<Cli
461
462
if (typeof this._endpoint === 'string') {
463
// Single address.
464
- } else if (typeof this._endpoint === 'object' && this._endpoint instanceof Array) {
+ } else if (Array.isArray(this._endpoint)) {
465
this._transports = this._endpoint;
466
this._emulation = true;
467
for (const i in this._transports) {
0 commit comments