Made a terrible chat server on my local network using actix and websockets
Hello, i made a chat server thay sucks a lot. Im posting this to encourge beginners like me :)
This is only the second time i attempt to write a server and im not very good at rusts idiomatics or know much about server theory [ :( ].
So, anyway, i learned about actix 2 days ago and tried to learn how it works, kinda failed cause theres like 2 tutorials on the internet...
The server runs on my pc and is reachable by other devices in my LAN, i was able to use it
on pc: chrome and edge
android: only opera
What it does: serves an index.html to log in only asking for a username, you cant get a username thats already taken. Then serves the chat page, is a lobby kinda chat, someone sends a message and everyone gets it. No storage of messages, no passwords.
I think the websockets are not supported 100% on chrome for android or maybe i should have used wss.
Made this cause im learning a little about web programming at school and i wanted to try something a little bigger in Rust.
And im posting cause when i tried to look for similar projects to use as a guide i couldnt find much.
Theres a gif of the server being used in the readme of the repo. Ignore my css, i was focusing on client javascript and the server.