gotsrpc/demo/demo.js
2016-05-12 17:31:54 +02:00

19 lines
610 B
JavaScript

var Demo;
(function (Demo) {
var ServiceClient = (function () {
function ServiceClient(endpoint) {
if (endpoint === void 0) { endpoint = "/default"; }
}
ServiceClient.prototype.hello = function (msg, success, err) {
};
ServiceClient.defaultInst = new ServiceClient();
return ServiceClient;
})();
Demo.ServiceClient = ServiceClient;
})(Demo || (Demo = {}));
Demo.ServiceClient.defaultInst.hello("Hansi", function (reply, err) {
console.log("server says hello", reply, err);
}, function (request) {
console.log("wtf", request);
});