Someone hosts a hub which just acts as a dumb message-passing relay between browsers via websockets. When a server connects, it sets a code payload. Then when a client connects to the same hub and requests the server, it receives the code payload and a streaming 2-way connection to the server.
There's a few live examples like a collaborative whiteboard in about ~40 lines of js.
https://github.com/shazow/relay.js
Someone hosts a hub which just acts as a dumb message-passing relay between browsers via websockets. When a server connects, it sets a code payload. Then when a client connects to the same hub and requests the server, it receives the code payload and a streaming 2-way connection to the server.
There's a few live examples like a collaborative whiteboard in about ~40 lines of js.