Class NotificationStore

Constructors

Properties

connected: boolean = false
listeners: Map<string, Subscription[]> = ...
main: MainStore
mqttClient?: Client
reconnectAttempts: number = 0
reconnectHandler?: () => void
subscribedTopics: {
    handler: (data: any) => void;
    referenceId: string;
    topic: string;
}[] = []
subscribeQueue: {
    handler: (data: any) => void;
    referenceId: string;
    topic: string;
}[] = []

Accessors

  • get topicStage(): string
  • Returns string

Methods

  • Parameters

    Returns Promise<void>

  • Parameters

    Returns void

  • Parameters

    • subscriptions: Subscription[]
    • message: unknown

    Returns void

  • Returns Promise<undefined | IotCredentials>

  • Returns boolean

  • Returns void

  • Returns void

  • Parameters

    • handler: () => void

    Returns void

  • Parameters

    • topicPostfix: string
    • onMessage: (data: any) => void
    • Optionalreference: string

    Returns undefined | string

  • Parameters

    • topicPostfix: string
    • reference: string

    Returns void