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.
Thanks.
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 https://golang.org/pkg/net/#UnixConn
@hazae41 are you working on this? I would like to give this a try if you're not :)
@hazae41 are you working on this? I would like to give this a try if you're not :)
Not yet
Hi everyone,
Would you please tell me where I could find the chosen solution.
Thanks,
Juu
Most helpful comment
Here is the API I propose
class UnixConn would be similar to UDPConn and Go's definition https://golang.org/pkg/net/#UnixConn