Why WebSockets Exist
HTTP and REST are good when the client asks and the server replies, then the interaction is mostly over.
Client asks -> Server responds -> connection mostly done
That works well for:
GET profile POST order PUT update DELETE item
It breaks down for real-time things where the server needs to push data without the client polling constantly.