Skip to content

Client error listener gets added twice #10

@gak10100

Description

@gak10100

The error listener is added twice.

here

let client = socketClusterClient.create(connectOptions);
client.poolIndex = i;
(async () => {
for await (let event of client.listener('error')) {
this._handleClientError(event);
}
})();
this.clients.push(client);
}
this._bindClientListeners();

and here

ClientPool.prototype._bindClientListeners = function () {
this.clients.forEach((client) => {
(async () => {
for await (let event of client.listener('error')) {
this._handleClientError(event);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions