Class PromiseSocket<TSocket>

Type Parameters

Hierarchy

Constructors

  • Type Parameters

    • TSocket extends Socket<TSocket>

    Parameters

    • Optional socket: TSocket

    Returns PromiseSocket<TSocket>

Properties

_errored?: Error
_isPromiseReadable: boolean
isPromiseReadable: boolean
isPromiseWritable: boolean
readable: PromiseReadable<TSocket>
socket: TSocket
stream: TSocket
timeoutHandler?: any
writable: PromiseWritable<TSocket>

Methods

  • Parameters

    • port: number
    • Optional host: string

    Returns Promise<void>

  • Parameters

    • path: string

    Returns Promise<void>

  • Parameters

    Returns Promise<void>

  • Returns void

  • Returns Promise<void>

  • Parameters

    • event: "close" | "error" | "end" | "finish"

    Returns Promise<void>

  • Parameters

    • event: "open"

    Returns Promise<number>

  • Parameters

    • event: "pipe" | "unpipe"

    Returns Promise<ReadableStream>

  • Parameters

    • Optional size: number

    Returns Promise<undefined | string | Buffer>

  • Returns Promise<undefined | string | Buffer>

  • Parameters

    • timeout: number

    Returns void

  • Parameters

    • content: string | Buffer
    • Optional chunkSize: number

    Returns Promise<number>

  • Parameters

    • instance: any

    Returns boolean

Generated using TypeDoc