I have a Remoting SDK server based on TROIndyTCPServer and TROBinMessages.
I have generated a JavaScript interface for this server and want to connect this server from JavaScript client.
generated client interface has some code commented as follows :
var Channel = new RemObjects.SDK.HTTPClientChannel(
"http://localhost:8090/Bin"
);
var Message = new RemObjects.SDK.JSONMessage();
var Service = new NewService(Channel, Message);
Service.Sum(
1,
2,
function(result) {
alert(result);
},
function(msg) {
alert(msg.getErrorMessage());
}
);
My question is : Server is based on tcp communication , and JavaScript client has HTTPClientChannel to communicate with server.
I tried to connect with this server but always getting connection refused.
What am I missing here ?