2020-12-23 17:24:22 +03:00
2020-12-22 11:09:59 +03:00
2020-12-23 17:24:22 +03:00
2020-05-14 17:30:17 +03:00
2020-12-23 17:24:22 +03:00
2020-12-23 17:24:22 +03:00
2020-12-23 17:24:22 +03:00
2020-12-23 17:24:22 +03:00
2020-12-23 17:24:22 +03:00
2020-11-18 10:03:21 +03:00

Fluence browser client

Browser client for the Fluence network based on the js-libp2p.

How to build

With npm installed building could be done as follows:

npm install fluence

Example

Shows how to register and call new service in Fluence network.

Generate new peer ids for clients.

let peerId1 = await Fluence.generatePeerId();
let peerId2 = await Fluence.generatePeerId();

Establish connections to predefined nodes.

let client1 = await Fluence.connect("/dns4/134.209.186.43/tcp/9003/ws/p2p/12D3KooWBUJifCTgaxAUrcM9JysqCcS4CS8tiYH5hExbdWCAoNwb", peerId1);
let client2 = await Fluence.connect("/ip4/134.209.186.43/tcp/9002/ws/p2p/12D3KooWHk9BjDQBUqnavciRPhAYFvqKBe4ZiPPvde7vDaqgn5er", peerId2);
Description
Languages
TypeScript 92.9%
JavaScript 6.5%
HTML 0.4%
CSS 0.2%