Reconfigures server for socket.io