Ver código fonte

Merge branch '290-rangeerror-invalid-websocket-frame-rsv2-and-rsv3-must-be-clear' into rc

Jonas Gloning 2 anos atrás
pai
commit
c10b21562a
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      src/services/webSocketServer/index.ts

+ 1 - 0
src/services/webSocketServer/index.ts

@@ -47,6 +47,7 @@ export class WebSocketServer extends EventEmitter implements IWebSocketServer {
   }
 
   private _onSocketConnection(socket: MyWebSocket, req: IncomingMessage): void {
+    socket.on("error", this._onSocketError);
     const { query = {} } = url.parse(req.url ?? '', true);
 
     const { id, token, key }: IAuthParams = query;