Is it possible for the express module to listen on a Unix socket?
Is it possible for the express module to listen on a Unix socket instead of a TCP port, something like this below the code
var express = require('express');
var app=express();
function getUserHome() {
return process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE;
}
var socketPath = getUserHome() + '/socket_log_svr';
app.listen(socketpath);
Please suggest
+3
Indrani sen
source
to share
No one has answered this question yet
Check out similar questions:
2201
45
28
nineteen
8
7
3
1
1
1