problem description
Doesnodejs have functions like php"s socket_create (AF_UNIX, SOCK_DGRAM, 0)?
function:
using udp protocol connet unix socket
for example, I have a udp service that listens to the native / tmp/my.sock file
how to use node.js to do client links and send data.
if it is a listening port, you can use
const dgram = require ("dgram");
const client = dgram.createSocket (" udp4");
client.send (msg, port, ip);
now the requirement is to link / tmp/my.sock the unix socket file
I tried net.createConnection. I don"t seem to be able to use udp for this.