Options
All
  • Public
  • Public/Protected
  • All
Menu

It handles WebSocket communication with the JSPrintManager Client App.

Hierarchy

  • JSPrintManager

Index

Properties

Static WS

Static auto_reconnect

auto_reconnect: boolean = false

If the websocket have closed, then retry to reconnect automatically

Static cache_license_at_start

cache_license_at_start: boolean = true

Static license_url

license_url: string = ""

Accessors

Static websocket_status

websocket_status:

Gets the status of the WebSocket connection.

Methods

Static cacheLicense

  • cacheLicense(url?: string): any
  • Cache the site license in the JSPM Desktop Client to work offline

    Parameters

    • Default value url: string = ""

    Returns any

Static getPrinters

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

    Returns any

Static getPrintersInfo

  • getPrintersInfo(): any
  • Gets detailed info of each installed printers in the client

    Returns any

Static showAbout

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

    Returns Promise<any>

Static start

  • start(secure?: boolean, host?: string, port?: number): Promise<void>
  • 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 host: string = "localhost"
    • Default value port: number = 22443

      The local network port number.

    Returns Promise<void>

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>