Everything kind of works, but under the hood it's a pain to read through the code.
I've decided that we should use TypeScript (a superset of JavaScript) that makes code more readable by specifying types and generally makes it more fun to write code.
Additionally, we should change the way authenticating (logging in) works.
Right now it emits events (socket.io) for things like sending username and password to validate it on the server, requesting a captcha, ...
Instead of using socket.io for this, we could either make the login section a form that posts data, or listen to the click event for the login button and send an HTTP request.
Everything kind of works, but under the hood it's a pain to read through the code. I've decided that we should use TypeScript (a superset of JavaScript) that makes code more readable by specifying types and generally makes it more fun to write code.
Additionally, we should change the way authenticating (logging in) works. Right now it emits events (socket.io) for things like sending username and password to validate it on the server, requesting a captcha, ... Instead of using socket.io for this, we could either make the login section a form that posts data, or listen to the click event for the login button and send an HTTP request.