Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Print

Index

Constructors

constructor

Properties

endpoint

endpoint: string

http

http: Client

options

options: PrintOptions

uriHelper

uriHelper: UriHelper

Methods

jobs

messages

printers

subscribeTo

  • subscribeTo(eventName: string, query?: Record<string, unknown>): EventSource
  • Returns an EventSource instance as an endpoint to receive events for the given event name. Subscription state and event handling can be handled via setting onmessage, onopen, and onerror callbacks on the EventSource instance.

    Parameters

    • eventName: string

      name of the event to subscribe to (e.g. jobs, messages, printers)

    • Optional query: Record<string, unknown>

    Returns EventSource

    • event source notifying of server-sent events

Legend

  • Class
  • Constructor
  • Property
  • Method
  • Variable
  • Function
  • Type alias
  • Enumeration
  • Interface

Generated using TypeDoc