Options
All
  • Public
  • Public/Protected
  • All
Menu

It handles WebSocket communication with the JSPrintManager Client App.

Hierarchy

  • JSPrintManager

Index

Properties

Static auto_reconnect

auto_reconnect: boolean = false

If the websocket have closed, then retry to reconnect automatically

Accessors

Static websocket_status

websocket_status:

Gets the status of the WebSocket connection.

Methods

Static _onClose

  • _onClose(e: any): void
  • Parameters

    • e: any

    Returns void

Static _onOpen

  • _onOpen(e: any): void
  • Parameters

    • e: any

    Returns void

Static getPrinters

  • getPrinters(): any
  • Gets the list of installed printers in the client.

    Returns any

Static onClose

  • onClose(e: any): void
  • Occurs when the WebSocket is close.

    Parameters

    • e: any

    Returns void

Static onOpen

  • onOpen(e: any): void
  • Parameters

    • e: any

    Returns void

Static send

  • send(data: any): Promise<any>
  • Sends command and data to the JSPrintManager Client App.

    Parameters

    • data: any

      The command or data to the client app.

    Returns Promise<any>

Static showAbout

  • showAbout(): Promise<any>
  • Displays the About dialog of the JSPrintManager Client App.

    Returns Promise<any>

Static start

  • start(secure?: boolean, port?: number): any
  • Starts a WebSocket communication with the JSPrintManager Client App.

    Parameters

    • Default value secure: boolean = true

      True to use WebSocket Secure (wss://); otherwise false.

    • Default value port: number = 20443

      The local network port number.

    Returns any

Static stop

  • stop(): void
  • Closes the WebSocket connection.

    Returns void

Static updateClient

  • updateClient(): Promise<any>
  • Performs the update process of the JSPrintManager Client App.

    Returns Promise<any>