Is it possible to specify Pusher or PubNub as an Angular service? Does anyone have code examples of such integration?
Someone already did this :-): http://jsfiddle.net/bv5Kq/13/
Be sure to check out the wiki for examples: https://github.com/angular/angular.js/wiki/JsFiddle-Examples
There is AngularFire for working with Firebase - http://angularfire.com/
. , , . , PubNub: http://jadendreamer.wordpress.com/2013/10/22/advanced-angular-chatroom-tutorial-no-database-or-sockets-required/
PubNub "" AngularJS. - PUBNUB. app/scripts/pubnub- angular. Coffee :
angular.module('pubnub.angular.service', []) .factory 'PubNub', () -> PUBNUB
GitHub:
https://github.com/pubnub/angular-js
Try the following: https://disparity.imtqy.com/angular-pusher/ , a module for integrating pusher events into the angular event system