如何Angular.js像推或PubNub一个实时通讯服务整合? [英] How to integrate Angular.js with a realtime messaging service like Pusher or PubNub?
本文介绍了如何Angular.js像推或PubNub一个实时通讯服务整合?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
时可以定义推或PubNub作为一个角服务?
是否有人有这样的融合code的例子吗?
Is it possible to define Pusher or PubNub as an Angular Service? Does someone have code examples of such an integration?
推荐答案
有人已经使得它:-):的http://的jsfiddle。净/ bv5Kq / 13 /
Someone already made it :-): http://jsfiddle.net/bv5Kq/13/
请务必检查出的例子维基:<一href=\"https://github.com/angular/angular.js/wiki/JsFiddle-Examples\">https://github.com/angular/angular.js/wiki/JsFiddle-Examples
Be sure to check out the wiki for examples: https://github.com/angular/angular.js/wiki/JsFiddle-Examples
这篇关于如何Angular.js像推或PubNub一个实时通讯服务整合?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文