From cc214baacf93c4cf4b16cb23d46b465536417614 Mon Sep 17 00:00:00 2001 From: MichaƂ Warda Date: Sun, 12 Feb 2023 13:37:28 +0100 Subject: Return server on listen (#2057) --- src/bun.js/http.exports.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/bun.js/http.exports.js b/src/bun.js/http.exports.js index 00e2c2dc9..59e2d3483 100644 --- a/src/bun.js/http.exports.js +++ b/src/bun.js/http.exports.js @@ -289,6 +289,8 @@ export class Server extends EventEmitter { } this.emit("error", err); } + + return this; } } -- cgit v1.2.3