


Broadcasting to all clients or to a subset of clients (similar to Group chats).Features that socket.io provides over traditional WebSockets Due to this WebSocket client will not be able to successfully connect to a Socket.IO server, and a Socket.IO client will not be able to connect to a plain WebSocket server either. Socket.IO uses WebSocket as a transport when possible, but it adds additional metadata to each packet. BUT Socket.IO is NOT a WebSocket implementation.

We can connect client and server responding to each other using socket.io. Socket.IO is a library that enables real-time, bidirectional and event-based communication between the browser and the server. It is used to implement connection between server and client such that server can also respond to client if new data is available or the old data is updated. Web Socket is a communication protocol which provides a full-duplex and low-latency channel between the server and the browser. This increases load on server as well as user is also frustrated. Disadvantage of these servers is user have to request again and again continuously in order to get new data. Server can not respond to user if new data is available. In traditional HTTP servers, when client requests for the resource then and then only the server responds.
