Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • AntidoteConnection

Index

Constructors

constructor

Properties

Private buffer

buffer: ByteBuffer = new ByteBuffer()

Private host

host: string | undefined

Private port

port: number

requestTimeoutMs

requestTimeoutMs: number = 1000

Private requests

requests: ApbRequest[] = []

Private socket

socket: Socket | undefined

Methods

close

  • close(): void

Private handleError

  • handleError(errorCode: number, errorMsg: string): void

Private handleResponse

  • handleResponse(code: number, decoded: any): void

Private invalidateSocket

  • invalidateSocket(err: Error): void

Private onClose

  • onClose(hasError: boolean): void

Private onConnect

  • onConnect(): void

Private onData

  • onData(data: Buffer): void

Private onError

  • onError(err: Error): void

Private onRequestTimeout

  • onRequestTimeout(): void

Private onTimeout

  • onTimeout(): void

Private readMessagesFromBuffer

  • readMessagesFromBuffer(): void

Private reconnect

  • reconnect(): void

Private reject

Private rejectPending

  • rejectPending(err: Error): void

Private resolve

sendRequest

  • sendRequest(messageCode: number, encodedMessage: ArrayBuffer): Promise<any>

Generated using TypeDoc