Web Sockets provide a standardized way for the server to send content to a client without first receiving a __ from that client. WebSockets is an advanced technology that enables bidirectional real-time interactive communication between a client and a server. It is achieved by defining a standardized mechanism for the server to send data to the client without the client first making a request.
What does socket.emit() do? emit() to send a message to all the connected clients. This code will notify when a user connects to the server.