@redpc/core
Version:
Remoted Procedure Call (RedPC) - A javascript RPC library written with TypeScript
38 lines (25 loc) • 727 B
text/typescript
// import { ProxyContract, ProxyMethod, StubContext, StubContract, StubMethod } from "../src";
// import "reflect-metadata";
// @StubContract({
// // defaultTransport: 'in-memory'
// })
// class ProxyHostTest {
// @StubMethod()
// public getTestValue(): string {
// return 'Host';
// }
// }
// @ProxyContract({
// path: 'ProxyHostTest'
// })
// class ProxyClientTest {
// @ProxyMethod()
// public getTestValue(): string {
// return 'Client';
// }
// }
// it('ShouldDefineMetadata', () => {
// // StubContext.addTransport()
// const p = new ProxyClientTest();
// console.log('testValue:', p.getTestValue());
// });