setting up socket.io at server side
setup socket.io between server and client