From ebda26385206e890c29166ef7d5763933bc57b06 Mon Sep 17 00:00:00 2001 From: Benjamin <3304771+gh0sTedBuddy@users.noreply.github.com> Date: Sat, 6 Apr 2024 18:30:50 +0100 Subject: [PATCH] fix(wetsock) plugin iteration issue --- lib/WetSock/WetSock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WetSock/WetSock.js b/lib/WetSock/WetSock.js index f8d4d2a..3b23e5f 100644 --- a/lib/WetSock/WetSock.js +++ b/lib/WetSock/WetSock.js @@ -40,7 +40,7 @@ export default class WetSock { } } catch (err) {} - for(const plugin of this.#plugins) { + for(const plugin of this.#plugins.values()) { if(plugin.onMessage(ws.data.clientId, message)) break; // plugin consumes message by returning a truthy value } }