Migrate WS to Asynchronous Rust
This pull request updates our WS to asynchronous using Rust's tokio library. This change improves our server's ability to handle multiple users at once without slowing down.
fixed - #200 Main Changes:
-
Switched to async methods for better performance.
-
Used tokio for all WebSocket operations.
-
Updated timers to async for game timeouts and checks.
-
WHY ASYNC ? Using async makes our game faster and more responsive. It lets our server do many things at once, like handling multiple user requests without waiting for each one to finish before starting the next. This means our game can serve more users smoothly and quickly.
Isn't this sidetracked from the initial motive for which this project was made using simpler things for beginner to intermediate-level?
@devsargam yoo learning docker pls check this nah #205
Hey @TanmayDhobale , have you tested this?
Hey @TanmayDhobale , have you tested this?
yep bro
Isn't this sidetracked from the initial motive for which this project was made using simpler things for beginner to intermediate-level?
nope