fix(wetsock) plugin iteration issue
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user