Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • NDWS

Index

Constructors

  • new NDWS(addr?: string, port?: number, secure?: boolean, auto_reconnect?: boolean): NDWS
  • Parameters

    • addr: string = 'localhost'
    • port: number = WSPORT
    • secure: boolean = true
    • auto_reconnect: boolean = false

    Returns NDWS

Properties

autoReconnect: boolean = false
onClose: ((e: any) => void) = ...

Type declaration

    • (e: any): void
    • Parameters

      • e: any

      Returns void

onError: ((e: any) => never) = ...

Type declaration

    • (e: any): never
    • Parameters

      • e: any

      Returns never

onOpen: ((e: any) => void) = ...

Type declaration

    • (e: any): void
    • Parameters

      • e: any

      Returns void

onStatusChanged: (() => void) = ...

Type declaration

    • (): void
    • Returns void

Accessors

  • get address(): string
  • Returns string

  • get isSecure(): boolean
  • Returns boolean

  • get port(): number
  • Returns number

Methods

  • send(data: any, properties: any): string
  • Parameters

    • data: any
    • properties: any

    Returns string

  • start(): Promise<void>
  • Returns Promise<void>

  • stop(): void
  • Returns void