mirror of
https://github.com/foomo/gotsrpc.git
synced 2025-10-16 12:35:35 +00:00
19 lines
610 B
JavaScript
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);
|
|
});
|