Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ClientTCP

Hierarchy

Index

Constructors

constructor

Properties

Protected connection

connection: Promise<any>

Private host

host: string

Private isConnected

isConnected: boolean = false

Private logger

logger: any = new Logger(ClientTCP.name)

Private port

port: number

Protected routingMap

routingMap: any = new Map<string, Function>()

Private socket

socket: JsonSocket

Methods

Protected assignPacketId

bindEvents

close

  • close(): void

connect

  • connect(): Promise<any>

Protected connect$

  • connect$(instance: any, errorEvent?: string, connectEvent?: string): Observable<any>

Protected createObserver

  • createObserver<T>(observer: Observer<T>): function

createSocket

Protected dispatchEvent

emit

  • emit<TResult, TInput>(pattern: any, data: TInput): Observable<TResult>

Protected getOptionsProp

  • getOptionsProp<T>(obj: any, prop: keyof T["options"], defaultValue?: any): any

handleClose

  • handleClose(): void

handleError

  • handleError(err: any): void

handleResponse

Protected normalizePattern

  • normalizePattern<T>(pattern: T): string

Protected publish

  • publish(partialPacket: ReadPacket, callback: function): Function

send

  • send<TResult, TInput>(pattern: any, data: TInput): Observable<TResult>

Generated using TypeDoc