Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harmony-development/protobuf-ts-transport-hrpc
hRPC transport for protobuf-ts
https://github.com/harmony-development/protobuf-ts-transport-hrpc
Last synced: about 2 months ago
JSON representation
hRPC transport for protobuf-ts
- Host: GitHub
- URL: https://github.com/harmony-development/protobuf-ts-transport-hrpc
- Owner: harmony-development
- Created: 2021-10-13T03:19:46.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-31T03:17:15.000Z (about 3 years ago)
- Last Synced: 2024-11-17T04:17:57.467Z (2 months ago)
- Language: TypeScript
- Size: 85 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSES/Apache-2.0.txt
Awesome Lists containing this project
README
# protobuf-ts-transport-hrpc
hRPC transport for protobuf-ts
Example usage:
```ts
import { ChatServiceClient } from "../gen/chat.client";
import { HrpcTransport } from "@harmony-dev/transport-hrpc";// ChatServiceClient is the generated protobuf-ts client. Read protobuf-ts's usage guide for more details
const client = new ChatServiceClient(
new HrpcTransport({
// the service's URL for access.
baseUrl: "http://localhost:6969",
})
);
```