Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Event<T>

The standard RStreams event that is written to and read from RStreams bus queues and thus through Node pipes that work with these queues.

Type parameters

  • T

    The type of data that is the payload of the event, specific to the queue the event is meant for

Hierarchy

Index

Properties

correlation_id?: CorrelationId

Reference the doc on [CorrelationId] that describes this well.

event: string

This is the name of the RStreams queue this event is in

event_source_timestamp: number

The timestamp of the first event that made it to the bus that this event eventually derived from, however far back upstream.

default

now

id: string

The ID of the bot that wrote this event to the queue

payload?: T

The RStreams queue-specific data that this event exists to wrap

timestamp: number

The millisecond (time since epoch) of when this event was created by the developer.

default

now

Generated using TypeDoc