I am using below code as socketio server to receive the message from client and process.
socketio
Server code :