Class SocketConnectionAbstract

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

The InputStream to read from.

output: OutputStream

The OutputStream to write to.

Methods

  • Closes the stream, releasing resources related to it. This will also close the individual input and output streams. Once the stream is closed, all other operations will fail. Closing a stream multiple times is allowed and will not result in an error.

    Returns Promise<void>

  • Disables the Nagle algorithm if noDelay is true, otherwise enables it. The Nagle algorithm is enabled by default, so it is only necessary to call this method if you wish to optimize for low delay instead of high throughput.

    Parameters

    • noDelay: boolean

    Returns Promise<void>

Generated using TypeDoc