[add] first
This commit is contained in:
12
test/try/no-res-issue/client/index.ts
Normal file
12
test/try/no-res-issue/client/index.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { TsrpcClient } from "../../..";
|
||||
import { serviceProto } from '../server/protocols/proto';
|
||||
|
||||
let client = new TsrpcClient({
|
||||
proto: serviceProto
|
||||
});
|
||||
|
||||
client.callApi('Test', { name: 'ssss' }).then(v => {
|
||||
console.log('then', v)
|
||||
}).catch(e => {
|
||||
console.log('catch', e)
|
||||
})
|
||||
Reference in New Issue
Block a user