handle connection in new Server struct