@ac-essentials/misc-util
    Preparing search index...

    Class IpcSocket<TSock, TEvents>

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    handledErrorEvents: Set<Error> = ...
    sock: TSock

    The underlying Node.js socket.

    Accessors

    • get stream(): Duplex

      Underlying duplex stream for reading and writing data.

      This is the wrapped net.Socket instance and can be passed directly to APIs that expect a Node.js stream.

      Returns Duplex

    • get timeout(): number | null

      Current inactivity timeout in milliseconds, or null if disabled.

      Returns number | null

    • set timeout(timeout: number | null): void

      Updates the inactivity timeout for the socket.

      When set to a positive number, the socket emits a "timeout" event if no I/O activity occurs within the given number of milliseconds. A value of 0 or null disables the timeout entirely.

      Parameters

      • timeout: number | null

      Returns void

    Methods

    • Half-closes the socket, optionally waiting for a full close.

      If waitForClose is omitted or false, the promise resolves once the local side has finished sending data and the FIN has been queued. When waitForClose is true, the promise resolves only after the remote side has also closed and the "close" event has fired.

      Parameters

      • Optionaloptions: { waitForClose?: boolean }

        Optional settings for ending the socket.

      Returns Promise<void>

      A promise that resolves once the socket has ended.