Header menu logo Nao

FeedbackEventConsumer Type

Persists feedback that flows over the event bus and serves the read/command side for a session. It is BOTH an event consumer (the write side — it persists TurnCompleted under each session's folder) AND the provider of the read/command FeedbackService for a session (the query side). The folder is derived from the event's session key by `rootFor`; the backing FeedbackService is the store-level swap point (File today, Database later), so changing where data lands needs no producer change.

Constructors

Constructor Description

FeedbackEventConsumer(rootFor)

Full Usage: FeedbackEventConsumer(rootFor)

Parameters:
    rootFor : string -> string

Returns: FeedbackEventConsumer
rootFor : string -> string
Returns: FeedbackEventConsumer

Instance members

Instance member Description

this.FeedbackFor

Full Usage: this.FeedbackFor

Parameters:
    sessionKey : string

Returns: FeedbackService

The FeedbackService backing reads + synchronous commands for a session key.

sessionKey : string
Returns: FeedbackService

Type something to start searching.