Crates.io | flnet |
lib.rs | flnet |
version | 0.7.2 |
source | src |
created_at | 2022-04-14 17:15:13.250237 |
updated_at | 2024-08-23 07:26:43.267511 |
description | Network setup and communication |
homepage | https://fledg.re |
repository | https://github.com/ineiti/fledger |
max_upload_size | |
id | 567649 |
size | 154,197 |
WebRTC data communication for libc and wasm
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.
To include flnet in your code, add the following line to your Cargo.toml
file:
# 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.
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.