Crates.io | wasm-ext |
lib.rs | wasm-ext |
version | 0.27.0 |
source | src |
created_at | 2021-03-11 07:19:16.502181 |
updated_at | 2021-03-12 05:57:29.920251 |
description | Allows passing in an external transport in a WASM environment |
homepage | https://core.tetcoin.org |
repository | https://github.com/tetcoin/tetsy-libp2p |
max_upload_size | |
id | 367160 |
size | 29,989 |
Implementation of the tetsy-libp2p Transport
trait for external transports.
This Transport
is used in the context of WASM to allow delegating the transport mechanism
to the code that uses tetsy-libp2p, as opposed to inside of tetsy-libp2p itself.
Note: This only allows transports that produce a raw stream with the remote. You couldn't, for example, pass an implementation QUIC.
Call new()
with a JavaScript object that implements the interface described in the ffi
module.