Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore building a server with Tokio, Warp, and Websockets in this 41-minute conference talk from Rust Linz, October 2021. Dive into Tokio's tools and frameworks, learn about channels and psc, and examine a practical websocket example. Discover how to implement chat filters, handle new user IDs with atomic use size, and set up websocket connections. Gain insights on splitting channels, forwarding websockets, and working with annotations. Understand synchronous operations, senders, broadcasts, and various message types. Conclude with a look at Cargo Run, Index HTML, and creating a "Hello World" application. Perfect for developers seeking to enhance their Rust server-building skills.
Syllabus
Intro
Tokio
Tokio tools
Tokio frameworks
Channels
psc
Websocket example
Websocket
Data Structure
Hashmap
Chat Filters
Warp Websocket
New User ID
Atomic Use Size
Fetch Ad
Websocket Setup
Splitting
Channel
Forward
Websockets
Annotations
New User
synchronous operation
sender
broadcast
exec stream
broadcast method
type message
string message
broadcast message
disconnect message
disconnect
sequential
Strengtheners
Cargo Run
Index HTML
Mainjs
Hello World
Say Hello
Conclusion
Taught by
Rust