Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Request

Common class for the remote procedure request. It hides inside the timeout handling and also the resolve and reject functions for the returned promise from the Server.call and Client.call methods

internal

Hierarchy

  • Request

Index

Constructors

Properties

Constructors

constructor

  • new Request(__namedParameters: { destructor: () => void; reject: (error: Error) => void; resolve: (result: any) => void; timeout: number }): Request
  • Parameters

    • __namedParameters: { destructor: () => void; reject: (error: Error) => void; resolve: (result: any) => void; timeout: number }
      • destructor: () => void
          • (): void
          • Returns void

      • reject: (error: Error) => void
          • (error: Error): void
          • Parameters

            • error: Error

            Returns void

      • resolve: (result: any) => void
          • (result: any): void
          • Parameters

            • result: any

            Returns void

      • timeout: number

    Returns Request

Properties

reject

reject: (error: Error) => void

Type declaration

    • (error: Error): void
    • Parameters

      • error: Error

      Returns void

resolve

resolve: (result: any) => void

Type declaration

    • (result: any): void
    • Parameters

      • result: any

      Returns void

Private timer

timer: number

Generated using TypeDoc