aboutsummaryrefslogtreecommitdiff
path: root/src/js/node/http.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/node/http.ts')
-rw-r--r--src/js/node/http.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/js/node/http.ts b/src/js/node/http.ts
index 2be1d90b5..46a527d25 100644
--- a/src/js/node/http.ts
+++ b/src/js/node/http.ts
@@ -447,6 +447,10 @@ class Server extends EventEmitter {
listen(port, host, backlog, onListen) {
const server = this;
+ let socketPath;
+ if (typeof port == "string") {
+ socketPath = port;
+ }
if (typeof host === "function") {
onListen = host;
host = undefined;
@@ -481,6 +485,7 @@ class Server extends EventEmitter {
tls,
port,
hostname: host,
+ unix: socketPath,
// Bindings to be used for WS Server
websocket: {
open(ws) {