@ably/cli
Version:
Ably CLI for Pub/Sub, Chat and Spaces
12 lines (11 loc) • 515 B
JavaScript
import { BaseTopicCommand } from '../../base-topic-command.js';
export default class Channels extends BaseTopicCommand {
topicName = 'channels';
commandGroup = 'Pub/Sub channel';
static description = 'Interact with Ably Pub/Sub channels';
static examples = [
'<%= config.bin %> <%= command.id %> publish my-channel \'{"name":"message","data":"Hello, World"}\'',
'<%= config.bin %> <%= command.id %> subscribe my-channel',
'<%= config.bin %> <%= command.id %> list',
];
}