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
source to share
No one has answered this question yet
Check out similar questions: