Skip to content

a simple cmdline utility to post simple ably messages

Notifications You must be signed in to change notification settings

ajoslin103/ably-node-util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ably-utility

-- a super bare-bone developers utility for sending Ably messages

clone the repo

create a .env file containing your ablyKey

ablyKey=your.key:here

run: npm install

execute: node index.js

params

channel: the channel name
message: the message text
payload: the payload text

sample:

$ node index.js --channel "CCCache" --message "CCObjectDeleted" --payload "CCObjectId:19279182"

read args, channel: CCCache message: CCObjectDeleted payload: CCObjectId:19279182
read .env, ablyKey: your.key:here
connecting to Ably...
ably connected
got ably channel: CCCache
ably published: CCObjectDeleted with payload: CCObjectId:19279182

About

a simple cmdline utility to post simple ably messages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published