rpc_ts
Version:
Remote Procedure Calls in TypeScript made simple
28 lines • 890 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @license
* Copyright (c) Aiden.ai
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
const common_1 = require("../../common");
/** Defines the banking service, giving all the methods and the request and response types. */
exports.numberServiceDefinition = {
increment: {
request: {},
response: {},
},
/**
* An example of a server stream that returns a message at regular intervals.
*/
streamNumbers: {
// This property indicates that the method serves a stream of messages
// rather than a unary response.
type: common_1.ModuleRpcCommon.ServiceMethodType.serverStream,
request: {},
response: {},
},
};
//# sourceMappingURL=service.js.map
;