@harmony-dev/transport-hrpc
v1.0.9
Published
protobuf-ts transport for hRPC
Downloads
9
Readme
protobuf-ts-transport-hrpc
hRPC transport for protobuf-ts
Example usage:
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",
})
);