- launch redis
- run
a.jsandb.js - run
sub.js, which it will connect toa.json port 3000 and it will subscribe to'/echo' - run
pub.jsat will, which it will connect tob.json port 3001 and it will call a POST on'/echo'which will trigger a publish - you should see your messages in the
sub.jsconsole