Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ElkConnection

Implemented by

Index

Events

addListener

Properties

state

Methods

connect

disconnect

emit

  • emit(event: string | symbol, ...args: any[]): boolean
  • emit(event: "connecting" | "connected" | "disconnecting", previousState: ElkConnectionState): void
  • emit(event: "disconnected", previousState: ElkConnectionState, error?: Error): void
  • emit(event: "error", error: Error): void
  • emit(event: "data", data: string): void

on

once

prependListener

prependOnceListener

  • prependOnceListener(event: "connecting" | "connected" | "disconnecting", listener: StateChangeListener): this
  • prependOnceListener(event: "disconnected", listener: DisconnectedListener): this
  • prependOnceListener(event: "error", listener: ErrorListener): this
  • prependOnceListener(event: "data", listener: DataListener): this

removeListener

write

  • write(data: string): Promise<unknown>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc