configuring socket.io