P2p web programming

I tried to learn a little about it, and I had faint memories of seeing p2p presentations in flash or silverlight, and I wandered if they have good ways to use this from javascript.

I would like to have the server as a client connector, and not as a proxy data server. Any libraries or sites that have done something like this, you can specify. Google does not give me much.

I do not need a simple solution, just where to start.

+7
source share
7 answers

The technology you are looking for is called Adobe Cirrus (formerly known as Adobe Stratus)

This allows you to get a p2p connection using a Flash player. It would be easy to then call it from javascript.

+4
source

Today I found it on Hackernews

http://peerjs.com/

On their page it is indicated:

PeerJS completes the WebRTC implementation to provide a complete, customizable, and easy-to-use peer-to-peer data API. Each peer simply provides an identifier with which other peers using the same API key can connect.

It sounds very interesting, I have to try the following: D

+9
source

WebRTC will be your answer soon. It is a W3C standard and is being integrated into all browsers.

http://www.webrtc.org/

http://www.webrtc.org/running-the-demos

http://www.w3.org/TR/webrtc/

+5
source

If you want to learn from existing code, I started a project a few months ago that uses RTMFP (Adobe Cirrus) as the link between the peer connected to the service. If you want to take a look at it, it is available here . So far, I don’t have time to do a lot of documentation, but if you have a question, you can ask them from me on github.

If you want to start with a smaller example, I made a JS interface that allows you to use a P2P connection with Javascript.

+3
source

This may not correspond exactly, but websites may be something interesting for you if you want it to be compatible with iphone / ipad

http://en.wikipedia.org/wiki/WebSockets

http://net.tutsplus.com/tutorials/javascript-ajax/start-using-html5-websockets-today/

+2
source

I haven't tried it yet, but anansi may be a good starting point. Node.js required

The two links in the "Thank you" section are definitely worth a look.

0
source

Or, if you only need the javascript client in the browser, are willing to pay for it, check ...

http://www.pubnub.com/

0
source

All Articles