Skip to content

Commit

Permalink
Added generated client implementations (#1094)
Browse files Browse the repository at this point in the history
Not clear how to use the generated client implementations

thanks to @torkelrogstad 
ref: #495
  • Loading branch information
jayakrishnancn committed Aug 18, 2024
1 parent c4cfc90 commit 17edf89
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,11 @@ interface Rpc {
If you're working with gRPC, a simple implementation could look like this:
```ts
const conn = new grpc.Client(
"localhost:8765",
grpc.credentials.createInsecure()
);

type RpcImpl = (service: string, method: string, data: Uint8Array) => Promise<Uint8Array>;

const sendRequest: RpcImpl = (service, method, data) => {
Expand Down

0 comments on commit 17edf89

Please sign in to comment.