Miss any of our Open RFC calls?Watch the recordings here! »

This package has been deprecated

Author message:

This package has been deprecated in favor of @improbable-eng/grpc-web-node-http-transport

grpc-web-node-http-transport

0.0.1 • Public • Published

grpc-web-node-http-transport

Node HTTP Transport for use with grpc-web-client

Usage

When making a gRPC request, specify this transport:

import { grpc } from 'grpc-web-client';
import { NodeHttpTransport } from 'grpc-web-node-http-transport';
 
grpc.invoke(MyService.DoQuery, {
  host: "https://example.com",
  transport: NodeHttpTransport(),
  /* ... */
})

Alternatively specify the Default Transport when your server/application bootstraps:

import { grpc } from "grpc-web-client";
import { NodeHttpTransport } from "grpc-web-node-http-transport";
 
// Do this first, before you make any grpc requests!
grpc.setDefaultTransport(NodeHttpTransport());

Keywords

none

Install

npm i grpc-web-node-http-transport

DownloadsWeekly Downloads

55

Version

0.0.1

License

Apache-2.0

Unpacked Size

21.4 kB

Total Files

8

Last publish

Collaborators

  • avatar