fix(WebSocketManager): heartbeat event had outdated types (#10417)

This commit is contained in:
DD
2024-07-31 10:40:36 +03:00
committed by GitHub
parent 785ec8fd75
commit 5eabec14d4
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,6 @@ export class SimpleShardingStrategy implements IShardingStrategy {
const strategy = new SimpleContextFetchingStrategy(this.manager, strategyOptions);
const shard = new WebSocketShard(strategy, shardId);
for (const event of Object.values(WebSocketShardEvents)) {
// @ts-expect-error Event props can't be resolved properly, but they are correct
shard.on(event, (...args) => this.manager.emit(event, ...args, shardId));
}