WebRTC data communication for libc and wasm

Build Status Crates.io

Documentation | Website

FLNet is used in fledger to communicate between browsers. It uses the WebRTC protocol and a signalling-server with websockets. The outstanding feature of this implementation is that it works both for WASM and libc with the same interface. This allows to write the core code once, and then re-use it for both WASM and libc.

How to use it

To include flnet in your code, add the following line to your Cargo.toml file:

```toml

For the common code

flnet = "0.7"

For the wasm implementation

flnet = {features = ["wasm"], version = "0.7"}

For the libc implementation

flnet = {features = ["libc"], version = "0.7"} ```

The libc feature also offers a signalling-server and a websocket-server.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.