I have seen this question, but it asks if it is okay to use http only and avoid websockets completely when building a chat app.
My situation is:
I have a simple chat app I am building. When sending a new message I am using an Http Post request(I am using Angular) to send the data to the server where it is persisted in the database, then is broadcasted via sockets to the appropriate clients. Are there any advantage or disadvantages of doing it like this? Instead of just using web sockets throughout?
According to this answer you should avoid using sockets where possible.
You could do it either way, but since you want to make a simple chat app, then you should probably use HTTP to send messages and a web socket to receive channel updates.
On both the client and server side, this will avoid complexities involved in multiplexing both inbound and outbound events over the same connection. This often turns out to be non-trivial, especially if you have to fall back from web sockets to long polling.