Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OffSwitchListener

inheritdoc

Off switch listener implementation.

The textbox and the invoker will be disabled when the incoming message doesn't contain a NER strategy.

Hierarchy

  • OffSwitchListener

Implements

Index

Constructors

constructor

  • new OffSwitchListener(txt?: HTMLTextAreaElement, btn?: HTMLButtonElement): OffSwitchListener

Properties

Private btn

btn: HTMLButtonElement

Private txt

txt: HTMLTextAreaElement

Methods

onConnected

  • onConnected(): void

onConnectionLost

  • onConnectionLost(): void

onDisconnected

  • onDisconnected(): void

onError

  • onError(error: string): void

onMessage

onPacketSend

  • onPacketSend(packet: IPacket): void

switchOff

  • switchOff(nerStrategies?: Map<string, any>): void
  • Sets the disabled flag and adds the CSS class lto-off to the invoker and textbox, if there is no NER strategy passed

    Parameters

    • Optional nerStrategies: Map<string, any>

      the NER strategy which is used in the current message

    Returns void

Generated using TypeDoc