scripts/qmp-shell: fix connect method signature