How to connect to another wowza or ams instance

We need to connect to AMS server from wowza HTTProvider, as a client. How can we do that? We need to do ‘call’,‘onDisconnect’ and etc methods