10 lines
391 B
TypeScript
Raw Normal View History

2021-12-23 23:36:33 +08:00
import { HttpClient } from "tsrpc-browser";
import { serviceProto } from "./shared/protocols/serviceProto";
// Create Client
export const client = new HttpClient(serviceProto, {
server: "https://service-23pfz6cm-1253954497.gz.apigw.tencentcs.com/release/helloworld-1634897828/",
// Remove this to use binary mode (remove from the server too)
json: true,
logger: console,
});