WebSocket is a communications protocol for a persistent, bi-directional, full duplex TCP connection from a user’s web browser to a server and an advanced technology that allows real-time interactive communication between the client browser and a server.
It uses a completely different protocol that allows bidirectional data flow, making it unique against HTTP. Web Sockets on the other hand don’t need you to send a request in order to respond. They allow bidirectional data flow so you just have to listen for any data.