Skip to content

Commit

Permalink
fix: websocket no shenanigan
Browse files Browse the repository at this point in the history
  • Loading branch information
Sorikairox committed Feb 3, 2025
1 parent c5f2db6 commit ef749a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/router/websocket/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ export class WebSocketRouter {
const _id = crypto.randomUUID();
(context as ExecutionContext)._id = _id;
(context as ExecutionContext).getClass = () => Controller;
(context as ExecutionContext).websocket = { ...socket, id: _id };
(context as ExecutionContext).websocket = socket as WebSocketInstance;
(context as ExecutionContext).websocket!.id = _id;
const executionContext = context as unknown as ExecutionContext;
const controllerInstance = await this.injector.get(
Controller,
Expand Down

0 comments on commit ef749a7

Please sign in to comment.