How to integrate Angular.js with a realtime messaging service like Pusher or PubNub?

Franck picture Franck · Sep 21, 2012 · Viewed 9.8k times · Source

Is it possible to define Pusher or PubNub as an Angular Service? Does someone have code examples of such an integration?

Answer

Andrew Joslin picture Andrew Joslin · Sep 21, 2012

Someone already made it :-): http://jsfiddle.net/bv5Kq/13/

Be sure to check out the wiki for examples: https://github.com/angular/angular.js/wiki/JsFiddle-Examples