From 0efa04b5841816d18b0c6ebf7c5f592f8382978a Mon Sep 17 00:00:00 2001 From: Jonathan Perret Date: Fri, 23 Feb 2024 10:21:43 +0100 Subject: [PATCH] fix(types): make socket.request writable (#697) Related: https://github.com/socketio/engine.io/issues/696 --- lib/socket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/socket.ts b/lib/socket.ts index 6fc2f0d7..59814dee 100644 --- a/lib/socket.ts +++ b/lib/socket.ts @@ -17,7 +17,7 @@ type ReadyState = "opening" | "open" | "closing" | "closed"; export class Socket extends EventEmitter { public readonly protocol: number; // TODO for the next major release: do not keep the reference to the first HTTP request, as it stays in memory - public readonly request: IncomingMessage; + public request: IncomingMessage; public readonly remoteAddress: string; public _readyState: ReadyState = "opening";