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, {
|
2021-12-23 23:37:59 +08:00
|
|
|
server: "http://127.0.0.1:3000",
|
2021-12-23 23:36:33 +08:00
|
|
|
// Remove this to use binary mode (remove from the server too)
|
|
|
|
json: true,
|
|
|
|
logger: console,
|
|
|
|
});
|