Changelog
- Added async support for frontend integration, And Used Tokio’s broadcast channel to pass messages between threads. (daf47ad)
Okay, So…… I wanted a way to show my Output Outside if the terminal, and I chose to use a web browser, since I am already quite skilled in frontend web dev. Had to add 2 New crates. Tokio for Async/Await functions, and Axum for Web socket Functions. Had some fun reading through their documentations and Implementing Tokio’s Broadcast instead of mpsc ones.
The reason i needed to change my broadcast method is cause mpsc is Single Consumer/Client, But multiple people might want to View the website at the same time
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.