šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

nice-grpc-client-middleware-devtools

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nice-grpc-client-middleware-devtools

Client middleware for nice-grpc to work with grpc-web-devtools https://github.com/SafetyCulture/grpc-web-devtools

1.0.7
latest
npm
Version published
Weekly downloads
950
9.2%
Maintainers
1
Weekly downloads
Ā 
Created
Source

nice-grpc-client-middleware-devtools npm version

Client middleware for nice-grpc that enables seeing grpc-web requests in grpc-web-tools.

Installation

npm install nice-grpc-client-middleware-devtools

Usage

import {
  createClientFactory,
  createChannel,
  ClientError,
  Status,
} from 'nice-grpc';
import {devtoolsLoggingMiddleware} from 'nice-grpc-client-middleware-devtools';

const clientFactory = createClientFactory().use(devtoolsLoggingMiddlware);

const channel = createChannel(address);
const client = clientFactory.create(ExampleService, channel);

const response = await client.exampleMethod(request);
// The request and response will be visible in the Browser extension

Alternatively, only logging for unary requests can be achieved by using devtoolsUnaryLoggingMiddleware or logging for streaming requests by using devtoolsStreamLoggingMiddleware.

FAQs

Package last updated on 26 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts