Via the Chrome Web Store (recommended)
or
- build it with
make build - open the Extension Management page by navigating to
chrome://extensions. - enable Developer Mode by clicking the toggle switch next to "Developer mode".
- Click the LOAD UNPACKED button and select the extension
./builddirectory.
Via Firefox Browser Add-Ons (recommended)
or
- build and package with
make package - enter
about:debuggingin the URL bar of Firefox - click This Firefox > Load Temporary Add-on...
- select the
grpc-web-devtools.zipextention file
const enableDevTools = window.__GRPCWEB_DEVTOOLS__ || (() => {});
const client = new EchoServiceClient('http://myapi.com');
enableDevTools([
client,
]);NOTE: Requires that your generated client(s) use
protoc-gen-grpc-web>= 1.0.4
The example uses docker-compose to start a simple gRPC server, JavaScript client and the Envoy proxy for gRPC-Web:
make example-upExample will be running on http://localhost:8080
To stop the example:
make example-down