Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Methods

addListener

  • addListener(event: EventType, handler: Handler<any>): EventEmitter

detach

  • detach(): Promise<void>
  • Detaches session from target. Once detached, session won't emit any events and can't be used to send messages.

    Returns Promise<void>

emit

  • emit(event: EventType, eventData?: any): boolean
  • Parameters

    • event: EventType
    • Optional eventData: any

    Returns boolean

listenerCount

  • listenerCount(event: string): number
  • Parameters

    • event: string

    Returns number

off

  • off(event: EventType, handler: Handler<any>): EventEmitter
  • Parameters

    • event: EventType
    • handler: Handler<any>

    Returns EventEmitter

on

  • Parameters

    • event: EventType
    • handler: Handler<any>

    Returns EventEmitter

once

  • once(event: EventType, handler: Handler<any>): EventEmitter
  • Parameters

    • event: EventType
    • handler: Handler<any>

    Returns EventEmitter

removeAllListeners

removeListener

  • removeListener(event: EventType, handler: Handler<any>): EventEmitter

send

  • send(method: string, params?: object): Promise<object>
  • Parameters

    • method: string

      Protocol method name

    • Optional params: object

    Returns Promise<object>

Generated using TypeDoc