Crates.io | yew-webtransport |
lib.rs | yew-webtransport |
version | 0.21.1 |
source | src |
created_at | 2022-11-10 02:41:14.977298 |
updated_at | 2024-07-27 00:20:40.16709 |
description | WebTransport is an API offering low-latency, bidirectional, client-server messaging. |
homepage | |
repository | https://github.com/security-union/yew-webtransport.git |
max_upload_size | |
id | 709170 |
size | 1,965,931 |
Access WebTransport in Yew apps using wasm-bindgen https://github.com/rustwasm/wasm-bindgen/pull/3344
YouTube Video: https://youtu.be/dztIToTf8Yc
WebTransport is a new web standard that aims to provide a low-level API for secure, multiplexed communication between web browsers and servers. It has the potential to greatly improve the performance of web applications, especially those that require real-time communication or large data transfers. However, the current implementation of WebTransport in browsers is written in Javascript, which can make it difficult to use in Rust webapps.
you can find a demo in the examples folder which is a port of the https://webtransport.day/ website to Yew + Rust.
The website is live at https://security-union.github.io/yew-webtransport/
If you want to run it locally, you have to set RUSTFLAGS
cd examples/webtransport-demo WS_URL=https://127.0.0.1:4433 RUSTFLAGS=--cfg=web_sys_unstable_apis trunk serve