Chat App Key Problems
Can the Same Process Serve Both WebSocket + Http Rquest? (why is this an important question to ask)
When building the chat app, we want to serve socket traffic to tell when a user is online and have the message be send as socket data package.
The application also have some other functionality such as login/logout. Those are typically served by http protocols. This is because the server has no need to push to client for these features.