chess icon indicating copy to clipboard operation
chess copied to clipboard

Migrate WS to Asynchronous Rust

Open TanmayDhobale opened this issue 1 year ago • 5 comments

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.

TanmayDhobale avatar Apr 22 '24 06:04 TanmayDhobale

Isn't this sidetracked from the initial motive for which this project was made using simpler things for beginner to intermediate-level?

pantharshit007 avatar Apr 22 '24 08:04 pantharshit007

@devsargam yoo learning docker pls check this nah #205

TanmayDhobale avatar Apr 22 '24 13:04 TanmayDhobale

Hey @TanmayDhobale , have you tested this?

Neon-20 avatar Apr 22 '24 15:04 Neon-20

Hey @TanmayDhobale , have you tested this?

yep bro

TanmayDhobale avatar Apr 29 '24 14:04 TanmayDhobale

Isn't this sidetracked from the initial motive for which this project was made using simpler things for beginner to intermediate-level?

nope

TanmayDhobale avatar Apr 29 '24 14:04 TanmayDhobale