3 ms·
I built a proof of concept that sort of does this: https://github.com/shazow/relay.js https://github.com/shazow/relay.js Someone hosts a hub which just acts a
by shazow 16y ago
I built a proof of concept that sort of does this:
https://github.com/shazow/relay.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.