- launch redis
- run
a.js
andb.js
- run
sub.js
, which it will connect toa.js
on port 3000 and it will subscribe to'/echo'
- run
pub.js
at will, which it will connect tob.js
on port 3001 and it will call a POST on'/echo'
which will trigger a publish - you should see your messages in the
sub.js
console
examples
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||