This commit is contained in:
2022-11-14 07:43:53 +01:00
parent 6aa6955fa8
commit 1380575845
3 changed files with 5 additions and 3 deletions

View File

@ -45,7 +45,7 @@ export class WebSocketPayload {
return null;
}
let wsEvent = <keyof typeof WebSocketEvent> rawPayload.event;
let wsEvent = WebSocketEvent[<keyof typeof WebSocketEvent> rawPayload.event];
return new WebSocketPayload(wsEvent, rawPayload.status, rawPayload.data);
}