May 02, 2021
Allows you to chat with people in real time with the help of websockets.
Web App
Server
Project was created on May 16 2021 and finished on 19 May 2021.
This project was made 10 months ago and at that time I didn't know how to create a monorepo. So this project is split into two github repositories.
When user connects to the websocket server it sends a JWT token generated by the HTTP api which you get by logging in with your credentials. When the server recieves the websocket request to authenticate the user, the server validates if the json web token (JWT) is correct and if it is correct it adds the user's connection to the list of authenticated users. And now when we need to send message to only authenticated users we send to every user in that list of connected users the message.
example-chat-app.netlify.app sign in into the testing account with username '123' and password '123'.