Bye WebSockets! Boost Web Comms with Rust and WebTransport

  Рет қаралды 8,312

Dario

Dario

Күн бұрын

In this video, I'll show you how I built a Rust WebTransport client and added WebTransport support to wasm-bindgen.
Code: github.com/security-union/yew...
Website: security-union.github.io/yew-...
WebTransport is a new API that enables low-latency, bidirectional communication between web clients and servers. It's a great alternative to WebSocket, especially for applications that require reliable, low-latency communication.
To build the Rust WebTransport client, I used wasm-bindgen. I'll walk you through the steps I took to set up the client and connect to a WebTransport server.
Next, I'll show you how I added WebTransport support to wasm-bindgen, a Rust library for interacting with JavaScript. With WebTransport support, you can now use wasm-bindgen to build fast, low-latency web applications with a Rust backend.
If you're interested in building web applications with Rust and WebTransport, this video is for you. Watch now and learn how to build your own Rust WebTransport client and add WebTransport support to wasm-bindgen!
0:00 WebSockets vs WebTransport
1:04 I built a rust webtransport client
1:28 Creating web-sys bindings for web apis
2:40 Demo of the WebTransport client
3:57 Top 3 features of WebTransport
5:11 WebTransport will become a w3c standard

Пікірлер: 27
@TarasShabatin
@TarasShabatin 2 ай бұрын
I hope Web-Transport will become stable soon. Thank you 🙏
@dario.lencina
@dario.lencina 2 ай бұрын
Same here 🤞🤞🤞
@leionev
@leionev Жыл бұрын
You definitly deserve more visibility!
@dario.lencina
@dario.lencina Жыл бұрын
Hey Léone! Let’s go build awesome stuff together 🚀🚀 I appreciate the Super Thanks!
@leionev
@leionev Жыл бұрын
@@dario.lencina I'm in!
@dinissaet9578
@dinissaet9578 Ай бұрын
Dario, you are the best!! Thank you!
@dario.lencina
@dario.lencina Ай бұрын
Thanks mate 👏👏what are you working on?
@dinissaet9578
@dinissaet9578 26 күн бұрын
@@dario.lencina Hello Dario! I made an application on rust + yew, similar to Google Docs, where several people can change one document, I used the WebRtc protocol. Then I saw a video on your channel where you taught how to capture video from a web camera (for some reason I didn’t find this video on the channel now) and I thought that I needed to add video conference functionality to my site, I also implemented video transmission using the protocol WebRtc. Everything worked out, everything works. Now I want to implement all interaction via WebTransport, using your libraries and tutorials. Next, I want to compare the scalability performance of WebRtc and WebTransport. Dario, thank you for the amazing things you do!
@dinissaet9578
@dinissaet9578 26 күн бұрын
@@dario.lencina Hello Dario! I made an application on rust + yew, similar to Google Docs, where several people can change one document, I used the WebRtc protocol. Then I saw a video on your channel where you taught how to capture video from a web camera (for some reason I didn’t find this video on the channel now) and I thought that I needed to add video conference functionality to my site, I also implemented video transmission using the protocol WebRtc. Everything worked out, everything works. Now I want to implement all interaction via WebTransport, using your libraries and tutorials. Next, I want to compare WebRtc and WebTransport in terms of performance and scalability. Dario, thank you for the amazing things you do!
@dinissaet9578
@dinissaet9578 25 күн бұрын
@@dario.lencina Hello Dario! I made an application on rust + yew, similar to Google Docs, where several people can change one document, I used the WebRtc protocol. Then I saw a video on your channel where you taught how to capture video from a web camera (for some reason I didn’t find this video on the channel now) and I thought that I needed to add video conference functionality to my site, I also implemented video transmission using the protocol WebRtc. Everything worked out, everything works. Now I want to implement all interaction via WebTransport, using your libraries and tutorials. Next, I want to compare WebRtc and WebTransport in terms of performance and scalability. Dario, thank you for the amazing things you do!
@dinissaet9578
@dinissaet9578 25 күн бұрын
@@dario.lencina Hello Dario! I made an application on rust + yew, similar to Google Docs, where several people can change one document, I used the WebRtc protocol. Then I saw a video on your channel where you taught how to capture video from a web camera (for some reason I didn’t find this video on the channel now) and I thought that I needed to add video conference functionality to my site, I also implemented video transmission using the protocol WebRtc. Everything worked out, everything works. Now I want to implement all interaction via WebTransport, using your libraries and tutorials. Next, I want to compare WebRtc and WebTransport in terms of performance and scalability. Dario, thank you for the amazing things you do!
@snk-js
@snk-js 8 ай бұрын
always bringing relevant and smart content, I am backing again to implement real time in rust with your help, tks
@dario.lencina
@dario.lencina 8 ай бұрын
Wow!! Thank you for the support dude!!
@snk-js
@snk-js 8 ай бұрын
so, how to setup the server receiving these msgs?
@dario.lencina
@dario.lencina 8 ай бұрын
Here you go my friend: all open source and ready to be used github.com/security-union/videocall-rs/blob/main/actix-api/src/webtransport/mod.rs I built the webtransport extension for h3
@morgomi
@morgomi Жыл бұрын
thank you for this great contribution.
@dario.lencina
@dario.lencina Жыл бұрын
Glad you enjoyed it!
@Taladar2003
@Taladar2003 Жыл бұрын
It is like a multi-lane highway? So as we add lanes it works fine for a while and then gets clogged again due to induced demand? ;-)
@dario.lencina
@dario.lencina Жыл бұрын
Yes!! you do not get unlimited capacity! especially over a wireless connection, that is a great metaphor !
@hamdysaadpersonal
@hamdysaadpersonal Жыл бұрын
❤❤❤ love the video
@dario.lencina
@dario.lencina Жыл бұрын
Thanks chief! Just trying to getting new things done!!
@jeffg4686
@jeffg4686 8 ай бұрын
Nice! Looks like Firefox has it now also
@dario.lencina
@dario.lencina 8 ай бұрын
Yes!!! 😎😎😎😎😎😎 that is awesome
@user-qr4jf4tv2x
@user-qr4jf4tv2x 8 ай бұрын
would you say its faster than zeromq? or tokio tcp?
@dario.lencina
@dario.lencina 8 ай бұрын
Hey @user-qr4jf4tv2x!! WebTransport is a lower level protocol than zeromq or tokio tcp. Think about it like this, zeromq are the trucks on the road while webtransport is the road. It is entirely possible that the maintainers of those protocols will switch over to quic and webtransport once it gets more traction.
@OtterSwims
@OtterSwims 4 ай бұрын
I learned about webtransport recently but opted not to learn about just because the spec isnt finalized
@dario.lencina
@dario.lencina 4 ай бұрын
Yeah makes sense, it is still in progress and not fully supported by all browsers
WebRTC vs WebTransport: What's the difference?
7:57
Dario
Рет қаралды 1,2 М.
Working for Elon Musk: Ex-Employees Reveal His Management Strategy | WSJ
7:16
The Wall Street Journal
Рет қаралды 2,7 МЛН
Be kind🤝
00:22
ISSEI / いっせい
Рет қаралды 20 МЛН
Omega Boy Past 3 #funny #viral #comedy
00:22
CRAZY GREAPA
Рет қаралды 33 МЛН
NO NO NO YES! (50 MLN SUBSCRIBERS CHALLENGE!) #shorts
00:26
PANDA BOI
Рет қаралды 102 МЛН
Live Media Over QUIC | Luke Curley
19:03
@Scale
Рет қаралды 1,8 М.
How to scale WebSockets to millions of connections
14:01
Ably Realtime
Рет қаралды 19 М.
Confessions of a Hacker known as Kingpin - @JoeGrand
12:36
Altium Stories
Рет қаралды 682 М.
The Truth about Rust/WebAssembly Performance
29:47
Greg Johnston
Рет қаралды 169 М.
A Beginner's Guide to WebSockets
29:26
freeCodeCamp.org
Рет қаралды 313 М.
8 deadly mistakes beginner Rust developers make
14:14
Let's Get Rusty
Рет қаралды 155 М.
Real-Time Rust: Building WebSockets with Tokio Tungstenite
29:11
Twitter was ‘absurdly’ overstaffed: Elon Musk
6:17
Fox News
Рет қаралды 1,3 МЛН
SQLx is my favorite PostgreSQL driver to use with Rust.
9:47
Dreams of Code
Рет қаралды 46 М.
Карточка Зарядка 📱 ( @ArshSoni )
0:23
EpicShortsRussia
Рет қаралды 338 М.
Carregando telefone com carregador cortado
1:01
Andcarli
Рет қаралды 2 МЛН
iPhone 12 socket cleaning #fixit
0:30
Tamar DB (mt)
Рет қаралды 7 МЛН
Не обзор DJI Osmo Pocket 3 Creator Combo
1:00
superfirsthero
Рет қаралды 966 М.