how to know if user input is send it to server in node js by socket io code example Example: simple socket.io chat npm install socket.io