How create a P2P web-chat without any server?

♀尐吖头ヾ 提交于 2019-12-18 13:07:20

问题


is there a way to create a P2P web-chat without any server ?


回答1:


If you're willing to use Flash, check out Adobe Stratus, which allows for peer to peer data and video streaming. http://labs.adobe.com/technologies/stratus/




回答2:


Yes, but you must decide on a place to meet.

If your friend send his ip over to you, you can connect. Then you only need to tell some more people to join. After some time you will get bigger and bigger. Then, if some link on the net fail, the cloud will be broken up in two clouds(netsplit). Then everyone need to know how to get back to being "one cloud".

Some one in the cloud always have to play the server, that is done with voting. If all agreed on who is the server, then it's decided. If not agreed, shoot one down and vote again.

You have to host your own web-server to serve up the web-interface, I guess.

I have not tried this. But I think it would work.




回答3:


Malte Uble's excellent UniversalComet article does exactly that as a proof of concept. Even works with Iphone and Android phones.



来源:https://stackoverflow.com/questions/2463665/how-create-a-p2p-web-chat-without-any-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!