This package has been deprecated

Author message:

Yo, this is now called 'peerless'

peerage
TypeScript icon, indicating that this package has built-in type declarations

0.1.5Β β€’Β PublicΒ β€’Β Published

πŸ‘‘ Peerage

🚨 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-id-abcde

for await (const { message, reply } of server) {
  reply('Hello, ' + message);
}
// window2.html
const client = new Client('unique-generated-id-abcde');

const response = await client.send('Peerage');

console.log(response);
// Hello, Peerage

[todo: video]

1:N

Connect lots of devices together.

Speed

Content travels directly between peers

Bidirectional streaming

Send a stream of messages for interative UIs

Readme

Keywords

none

Package Sidebar

Install

npm i peerage

Weekly Downloads

3

Version

0.1.5

License

MIT

Unpacked Size

5.19 kB

Total Files

12

Last publish

Collaborators

  • benjaminbenben