https://mellocloud.com/tic-tac-chat
-
Learned how to securely setup websockets, using nginx to reroute traffic from wss://mellocloud.com/ws to another node js app running the websocket with the https keys.
-
Learned how to create and handle different events with websockets and decide what to do accordingly.
-
Learned how to setup a Client ID on the ws object so I can identify who is using the websocket.
-
Learned how to setup mongoDB in a different file and extract out each type of query individually using dependency injection and closures. This just makes it easier for me to use the query's and have it be promise based. If you look at the mongodb.js and index.js file you will see.
-
Learned to broadcast messages to all or certain users in the websocket.