Fix server to work with the latest socket.io.