Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PubSub

Hierarchy

  • PubSub

Index

Constructors

Methods

Constructors

constructor

Methods

handlePubSubMessage

publish

  • publish<J>(topic: string, data: J): Promise<void>
  • Publish an event to a topic

    This method assumes that your data is serializeable to JSON

    Type parameters

    • J: {}

    Parameters

    • topic: string

      the event stream in GCP PubSub

    • data: J

      the data associated with this event stream

    Returns Promise<void>

Generated using TypeDoc