Note: You are viewing documentation for version v0 of Node.js. View the latest version.
Node.js - topic()
Creates a new Topic.
import { topic } from '@nitric/sdk'
const updates = topic('updates')
Parameters
- Name
name
- Required
- Required
- Type
- string
- Description
The name of the topic to create.
Examples
Create a new topic
import { topic } from '@nitric/sdk'
const updates = topic('updates')