简体   繁体   English

Webapp和通知

[英]Webapp and notification

Which is the best way to notify a webapp (need to work in chrome and safari) from server? 从服务器通知Web应用程序(需要在chrome和safari中工作)的最佳方法是什么? (my webapp is in angular for information). (我的webapp可以提供一些信息)。 Is it possible to receive UDP broacast with a webapp? 是否可以通过webapp接收UDP广播? (If not, that will not be a problem i can do a little app that will receive the broadcast and translate it to a notification but which is the best one for webapp that the question...) (如果没有,那不是问题,我可以做一个小应用程序,它将接收广播并将其转换为通知,但这是webapp最好的那个问题...)

This probably a double post but i didn't find a real example so if you can give me an example of what i need to do that gona be great :). 这可能是重复的帖子,但是我没有找到一个真正的例子,所以如果您能给我一个我需要做的例子,那就太棒了:)。

I'm not sure of what you want, but if you need to notify your webapp from server in real time you probably will be interested by websocket technology. 我不确定您想要什么,但是如果您需要从服务器实时通知您的webapp,您可能会对websocket技术感兴趣。 You can get information about this subject here: https://developer.mozilla.org/fr/docs/WebSockets 您可以在此处获取有关此主题的信息: https : //developer.mozilla.org/fr/docs/WebSockets

If you use a nodeJs server, socket.io seems to be great and there are good exemples and documentation in the official website ( http://socket.io/ ). 如果使用nodeJs服务器,socket.io似乎很棒,并且官方网站( http://socket.io/ )上有很好的示例和文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM