peerless
v0.0.1
Published
## _🚨 This isn't implemented yet 🚨_
Downloads
1
Readme
👑 Peerless
🚨 This isn't implemented yet 🚨
A web server that runs inside your web browser
// window1.html
const server = new Server();
console.log(await server.endpoint); // unique-generated-code-abcde
for await (const { message, reply } of server) {
reply('Hello, ' + message);
}
// window2.html
const client = new Client('unique-generated-code-abcde');
const response = await client.send('Peerless');
console.log(response);
// Hello, Peerless
[todo: video]
Good Stuff 👌:
- peer-to-peer – direct connection between browsers (fast!)
- 1:N – let loads of people connect to you
- streaming – for fun/interactive UIs