Javascript中两个客户端会话之间的通信 [英] Communication among two to client side sessions in Javascript

查看:209
本文介绍了Javascript中两个客户端会话之间的通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是一个疯狂的问题,只是试试我的运气。
我们正在构建一个HTML5应用程序,我们需要在两个用户之间以与Google Docs相同的方式进行协作,两个用户可以同时编辑文档,他们可以看到彼此的更改。

This might be a crazy question, just trying my luck. We are building a HTML5 application, we have a need for colloboration between two users the same way as in Google Docs two users can simultaniously edit a document and they can see each others changes.

在我们的案例中,文档永远不会存储在服务器端,我们不希望在服务器端托管服务以便在两个客户端之间进行同步。

In our case the document is never stored at server side and we do not want to host a service at server side for synchronization between two clients.

用户将在同一个WiFi网络上。

The users will be on same WiFi network.

通过两个客户端用户会话可以相互通信吗?
除了在浏览器中运行我们的应用程序外,我们希望避免在客户端计算机上安装任何内容。

Is there any way through two client side user sessions can communicate with each other? We want to avoid installing anything on client machine except of running our app in browser.

谢谢,
Navneet

Thanks, Navneet

推荐答案

是的,你可以。
你可能会觉得这很有趣: http://www.webrtc.org/

这个项目实际上得到了谷歌,Mozilla和Opera的支持,所以可能会有未来

This project is actually supported by Google, Mozilla and Opera so could have a future

这篇关于Javascript中两个客户端会话之间的通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆