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 messageIf a topic does not exist, it will be created before a message is published.
#
Typescript exampleclient.example.ts
#
Javascript exampleclient.example.js