@injectivelabs/grpc-web-node-http-transport
Injective HTTP Transport for use with @injectivelabs/grpc-web
Usage
When making a gRPC request, specify this transport:
import { grpc } from '@injectivelabs/grpc-web';
import { InjectiveHttpTransport } from '@injectivelabs/grpc-web-http-transport';
grpc.invoke(MyService.DoQuery, {
host: "https://example.com",
transport: InjectiveHttpTransport(),
})
Alternatively specify the Default Transport when your server/application bootstraps:
import { grpc } from "@injectivelabs/grpc-web";
import { InjectiveHttpTransport } from "@injectivelabs/grpc-web-http-transport";
grpc.setDefaultTransport(InjectiveHttpTransport());