4
submitted 3 years ago by ilfi@lemmy.world to c/rust@lemmy.ml

Hi fellow Rustaceans. I am new to rust and web stuff and I want to make battleship game with rust as a server side and android as a client. Will Rocket/Actix web be ok if I want to create something like a lobby/room for players, or will sockets be better suited?

you are viewing a single comment's thread
view the rest of the comments
[-] Agility0971@lemmy.world 1 points 3 years ago

I'm not a web / game dev but from what I can remember off Fireship videos you probably want to use some sort of web sockets because the data you're working with are real time right? A quick search on lib.rs and it seems like you would have better chances with Actix-web. They even have examples for websockets.

this post was submitted on 18 Jun 2023
4 points (100.0% liked)

Rust Programming

9435 readers
1 users here now

founded 7 years ago
MODERATORS