Tutorial by Examples

The publisher-subscriber is a familiar concept given the rise of YouTube, Facebook and other social media services. The basic concept is that there is a Publisher who generates content and a Subscriber who consumes content. Whenever the Publisher generates content, each Subscriber is notified. Subsc...
Publishers and subscribers don't need to know each other. They simply communicate with the help of message queues. (function () { var data; setTimeout(function () { data = 10; $(document).trigger("myCustomEvent"); }, 2000); ...

Page 1 of 1