@exodus/improbable-eng-grpc-web-node-http-transport
Node HTTP Transport for use with @improbable-eng/grpc-web
Last updated 4 months ago by feri42 .
Apache-2.0 · Repository · Original npm · Tarball · package.json
$ cnpm install @exodus/improbable-eng-grpc-web-node-http-transport 
SYNC missed versions from official npm registry.

@improbable-eng/grpc-web-node-http-transport

Node HTTP Transport for use with @improbable-eng/grpc-web

Usage

When making a gRPC request, specify this transport:

import { grpc } from '@improbable-eng/grpc-web';
import { NodeHttpTransport } from '@improbable-eng/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 "@improbable-eng/grpc-web";
import { NodeHttpTransport } from "@improbable-eng/grpc-web-node-http-transport";

// Do this first, before you make any grpc requests!
grpc.setDefaultTransport(NodeHttpTransport());

Current Tags

  • 0.13.0-exodus.0                                ...           latest (4 months ago)

1 Versions

  • 0.13.0-exodus.0                                ...           4 months ago

Copyright 2014 - 2017 © taobao.org |