diff options
-rw-r--r-- | src/bun.js/http.exports.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bun.js/http.exports.js b/src/bun.js/http.exports.js index 42a583dd6..890ca347e 100644 --- a/src/bun.js/http.exports.js +++ b/src/bun.js/http.exports.js @@ -626,6 +626,10 @@ export class IncomingMessage extends Readable { return (this.#fakeSocket ??= new FakeSocket()); } + set socket(val) { + this.#fakeSocket = val; + } + setTimeout(msecs, callback) { throw new Error("not implemented"); } @@ -746,6 +750,10 @@ export class OutgoingMessage extends Writable { return (this.#fakeSocket ??= new FakeSocket()); } + set socket(val) { + this.#fakeSocket = val; + } + get connection() { return this.socket; } |