How to integrate Angular.js using a real-time messaging service like Pusher or PubNub?

Is it possible to specify Pusher or PubNub as an Angular service? Does anyone have code examples of such integration?

+5
source share
5 answers

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

+8
source

There is AngularFire for working with Firebase - http://angularfire.com/

+1
source

PubNub "" AngularJS. - PUBNUB. app/scripts/pubnub- angular. Coffee :

angular.module('pubnub.angular.service', [])
  .factory 'PubNub', () -> PUBNUB

GitHub:

https://github.com/pubnub/angular-js

0

Try the following: https://disparity.imtqy.com/angular-pusher/ , a module for integrating pusher events into the angular event system

-1
source

All Articles