Version: v1
Topics
Create a topic in PUBSUB_ROOT_DIR/topics which extends Topic and a payload which extends Payload from package.
/pubsub/topics/simple.topic.name.ts
tip
As a convention, the name of the topic file should match the name of the topic name so the file directory becomes self-documenting.
Publishing a message#
If a topic does not exist, it will be created before a message is published.
Typescript example#
client.example.ts
Javascript example#
client.example.js