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')

See also