Ask questionsSupport unix domain sockets

Now that UDP support has been added in #3946 I'm wondering if Unix Domain sockets could be added in the same way.

Unix sockets are very handy when you need to communicate with another process without dealing with ports and whatnot.

I suppose the only question is whether connecting to a UDS from Deno requires a net permission or a file permission. My hunch is that it is a file permission, simply because that is how it is thought of in the underlying OS.



Answer questions hazae41

Here is the API I propose

Deno.listen({ transport: "unix", address: "/var/run/mysocket" }): UnixConn

class UnixConn would be similar to UDPConn and Go's definition


Related questions

{WSL 2} Permission denied (os error 13) hot 1
gRPC in Deno? hot 1
deno remove/uninstall subcommand hot 1
Insight required: Resource (TCP) errors hot 1
TCP accept loop doesn't use for-await hot 1
Support d.ts files hot 1
Restore runtime lib generation capability hot 1
disable flaky tests _048_media_types_jsx and _019_media_types hot 1
Typescript Custom Transformers Support hot 1
reorg directory structure hot 1
Centos 7 GLIBC_2.18 not found hot 1
"deno ast script.ts" hot 1
Text decoding performance abysmally slow. hot 1
"deno ast script.ts" hot 1
Can't build master hot 1
Github User Rank List