()
| 12 | const { blog } = grpc.loadPackageDefinition(packageDefinition) as any; |
| 13 | |
| 14 | function main() { |
| 15 | const client = new blog.Blog( |
| 16 | "localhost:50051", |
| 17 | grpc.credentials.createInsecure() |
| 18 | ); |
| 19 | |
| 20 | client.filterPosts({ searchString: "" }, (err: any, response: any) => { |
| 21 | if (err) { |
| 22 | console.error(err); |
| 23 | return; |
| 24 | } |
| 25 | console.log(response); |
| 26 | }); |
| 27 | } |
| 28 | |
| 29 | main(); |
no test coverage detected