Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WorkerValueStreamResponder

An adapter that listens to value stream events in the shared worker and sends the events to the registry proxy in the tab

Hierarchy

  • WorkerValueStreamResponder

Index

Constructors

constructor

Properties

Private adapterId

adapterId: ConversationId

Private respond

valueStream

The value stream that receives the events

Methods

onOpen

  • onOpen(): void
  • Handle the open event

    Returns void

onSubscription

  • Handle a subscription event

    Parameters

    Returns void

onSubscriptionError

  • onSubscriptionError(error: any): void
  • Handle a subscription error

    Parameters

    • error: any

      the error

    Returns void

onUnsubscription

  • Handle a subscription event

    Parameters

    Returns void

onValue

  • onValue(path: string, specification: TopicSpecification, newValue: Buffer, oldValue: Buffer | null): void
  • Handle a value event

    Parameters

    • path: string

      the topic path

    • specification: TopicSpecification

      the topic specification

    • newValue: Buffer

      the new value

    • oldValue: Buffer | null

      the old value

    Returns void