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
node.js express unix-domain-sockets


source to share


No one has answered this question yet

Check out similar questions:

2201
How do you decide when to use Node.js?
45
A UNIX socket implementation for Java?
28
How do I know if a process is associated with a Unix domain socket?
nineteen
HTTP over AF_UNIX: HTTP connection to Unix socket
8
Warp: Binding to Unix Domain Sockets
7
Haskell: Unix Domain Sockets
3
Wait for the Unix domain socket to bind
1
WebSockets listening on UNIX domain socket?
1
Make Sails.js listen on a unix socket file instead on a port?
1
Configure MongoDB to listen on Unix Socket only and not on any TCP port



All Articles
Loading...
X
Show
Funny
Dev
Pics