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
Activity
sauravhiremath commentedon Apr 26, 2020
Okay, i'll get started on it.
sauravhiremath commentedon Apr 27, 2020
Could you specify why exactly are we using
fromUnixSocket()andfromInetSocket()function?Instead,
Specify
InetSocketConnection()andUnixSocketConnection()indefault()function by comparing the socketPath being unix_sock_path or named pipes (windows).Example snippet:
Could the above snippet work?
rakshith-ravi commentedon Apr 28, 2020
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
fromUnixSocketor thefromInetSocketfunction.However, when the
fromUnixSocketfunction is called from a windows system, it should error out.sauravhiremath commentedon Apr 28, 2020
Also, do I extract IP address from the string being passed if it has a valid domain name?
rakshith-ravi commentedon Apr 28, 2020
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.1or0.0.0.0or any other bind address). Domain names aren't valid therePass data along with hooks (#18)