net-address
    Preparing search index...

    Class SocketAddrUnix

    Represents a Unix domain socket address, consisting of a file system path.

    const socketAddress = new SocketAddrUnix('/tmp/app.sock');
    const windowsNamedPipeAddress = new SocketAddrUnix('\\\\.\\pipe\\app');

    v0.1.0

    Index
    family: "unix" = 'unix'

    Address family of the socket address.

    v0.1.0

    path: string

    File system path of the Unix socket.

    v0.1.0

    • Returns an object suitable for use as options in Node.js net.Server.listen() method.

      Returns { path: string }

      An object containing the path property.

      v0.1.0

    • Compares this Unix socket path with another for equality.

      Parameters

      • other: object | SocketAddrUnix

        instance of another Unix socket path to compare with.

      Returns boolean

      true if both paths are equal, otherwise false.

      v0.1.0

    • Returns a string representation of this Unix socket path.

      Returns string

      The string representation of the path.

      v0.1.0