From 5ba0d498dc95ec437af6c086246e3711a2f81d57 Mon Sep 17 00:00:00 2001 From: Damien Arrachequesne Date: Fri, 3 Feb 2023 08:26:31 +0100 Subject: [PATCH] refactor: minor edit Following https://github.com/socketio/socket.io-client/commit/655dce97556a1ea44a60db6b694d0cfd85b5f70f --- lib/socket.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/socket.ts b/lib/socket.ts index c4ee3f94..848c0363 100644 --- a/lib/socket.ts +++ b/lib/socket.ts @@ -96,7 +96,7 @@ interface Flags { compress?: boolean; volatile?: boolean; timeout?: number; - withRetry?: boolean; + fromQueue?: boolean; } export type DisconnectDescription = @@ -381,7 +381,7 @@ export class Socket< args.unshift(ev); - if (this._opts.retries && !this.flags.withRetry && !this.flags.volatile) { + if (this._opts.retries && !this.flags.fromQueue && !this.flags.volatile) { let ack; if (typeof args[args.length - 1] === "function") { ack = args.pop(); @@ -392,7 +392,7 @@ export class Socket< pending: false, args, ack, - flags: Object.assign({ withRetry: true }, this.flags), + flags: Object.assign({ fromQueue: true }, this.flags), }); this._drainQueue(); return this;