WatchUsBuild-ImageStreamingAppWithNodePubSubServer
WatchUsBuild-ImageStreamingAppWithNodePubSubServer copied to clipboard
webserver switched from axon to redis subscribe, so change this to redis publish
in models.badges.js
replace the socket.send command in exports.send with
redis.publish('badge',JSON.stringify(badge));
or you can replace it in the lib file.
After watching the video and typing the code by hand then seeing something different on github, I was definately surprised when cloning both webserver and pubsub samples from github fresh, still didn't update in realtime when running the producer script.
sure its 18 months old and nobody cares, but if it helps, you will probably update the materials at some point so I thought it would be good to make a record of it. redis pub-sub must be better for pubsub, because just 1 library, while axon more for is for queue based messaging.