You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 28, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 28, 2026. It is now read-only.
Unix sockets will not work on windows. They only work on macOS and Linux.
Juno, however, supports standard inet sockets for communication. That needs to be incorporated into this library.
The following things are needed:
Similar to the rust library, JunoModule.ts should provide static functions called fromUnixSocket(path: string) and fromInetSocket(host: string, port: number).
The existing default(string) function should be modified to check if the string is a unix socket path or an inet socket and accordingly call the corresponding function.
The fromUnixSocket function should throw an error and crash the program when called on windows, with an appropriate error message.
There should be a src/connection/inet-socket-connection.ts file that implements the connection for inet sockets. You can take inspiration from unix socket to understand how it works.
Could you specify why exactly are we using fromUnixSocket() and fromInetSocket() function?
Instead,
Specify InetSocketConnection() and UnixSocketConnection() in default() function by comparing the socketPath being unix_sock_path or named pipes (windows).
Could you specify why exactly are we using fromUnixSocket() and fromInetSocket() function?
Those functions will allow you to explicitly set the connection type instead of depending on the default function to categorize it.
Additionally, named pipes aren't supported by Juno....yet. I have no plans to support it as of now, since the throughput of named pipes are not the best. So, the default function should check if the string being passed is a unix socket (a file name) or a bind address. Based on that, it should call the fromUnixSocket or the fromInetSocket function.
However, when the fromUnixSocket function is called from a windows system, it should error out.
There can't possibly be a domain name. That's an illegal string. The IP address that's mentioned there is the bind address (127.0.0.1 or 0.0.0.0 or any other bind address). Domain names aren't valid there
Unix sockets will not work on windows. They only work on macOS and Linux.
Juno, however, supports standard inet sockets for communication. That needs to be incorporated into this library.
The following things are needed:
JunoModule.tsshould provide static functions calledfromUnixSocket(path: string)andfromInetSocket(host: string, port: number).default(string)function should be modified to check if the string is a unix socket path or an inet socket and accordingly call the corresponding function.fromUnixSocketfunction should throw an error and crash the program when called on windows, with an appropriate error message.src/connection/inet-socket-connection.tsfile that implements the connection for inet sockets. You can take inspiration from unix socket to understand how it works.Ping here if you need any help