Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BrowserPage

A browser page.

Hierarchy

Index

Properties

Readonly close

close: () => PromiseLike<boolean>

Closes the connection to the item.

returns

The promise that indicates if operation was successful or not.

Type declaration

    • (): PromiseLike<boolean>
    • Returns PromiseLike<boolean>

Readonly connect

connect: () => PromiseLike<boolean>

Options a connection to the item.

returns

The promise that indicates if operation was successful or not.

Type declaration

    • (): PromiseLike<boolean>
    • Returns PromiseLike<boolean>

Optional Readonly description

description: string

The description.

Readonly favIcon

favIcon: string

Gets the URI of the FavIcon.

Readonly id

id: string

The ID of the item.

Readonly isConnected

isConnected: boolean

Indicates if a connection to the item has been established or not.

Readonly send

send: (method: string, params?: any, callback?: SendToBrowserItemCallback) => PromiseLike<void>

Invokes a method for the item.

param

The method to invoke.

param

Parameters for the method.

param

The optional callback.

Type declaration

Readonly socketUri

socketUri: string

Gets the underyling (web) socket URI.

Readonly title

title: string

The title of the page.

Methods

addListener

  • addListener(event: string | symbol, listener: (...args: any[]) => void): BrowserPage
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns BrowserPage

dispose

  • dispose(): any
  • Dispose this object.

    Returns any

emit

  • emit(event: string | symbol, ...args: any[]): boolean
  • Parameters

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

eventNames

  • eventNames(): (string | symbol)[]
  • Returns (string | symbol)[]

getMaxListeners

  • getMaxListeners(): number

listenerCount

  • listenerCount(event: string | symbol): number
  • Parameters

    • event: string | symbol

    Returns number

listeners

  • listeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

off

  • off(event: string | symbol, listener: (...args: any[]) => void): BrowserPage
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns BrowserPage

on

  • on(event: string | symbol, listener: (...args: any[]) => void): BrowserPage
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns BrowserPage

once

  • once(event: string | symbol, listener: (...args: any[]) => void): BrowserPage
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns BrowserPage

prependListener

  • prependListener(event: string | symbol, listener: (...args: any[]) => void): BrowserPage
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns BrowserPage

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): BrowserPage
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns BrowserPage

rawListeners

  • rawListeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

removeAllListeners

  • removeAllListeners(event?: string | symbol): BrowserPage

removeListener

  • removeListener(event: string | symbol, listener: (...args: any[]) => void): BrowserPage
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns BrowserPage

setMaxListeners

Generated using TypeDoc