

GitHub - iendeavor/grpc-devtools: Browser DevTools extension for debugging gRPC...
source link: https://github.com/iendeavor/grpc-devtools
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

gRPC Devtools
grpc-devtools
requires at least grpc-web
1.1.0, so make sure you upgrade your grpc-web if you're still running an older one.
Usage
const gRPCDevtoolsStreamInterceptor =
typeof __gRPC_devtools__ === "object" &&
__gRPC_devtools__ !== null &&
__gRPC_devtools__.gRPCDevtoolsStreamInterceptor;
const streamInterceptors = gRPCDevtoolsStreamInterceptor
? [gRPCDevtoolsStreamInterceptor]
: [];
const gRPCDevtoolsUnaryInterceptor =
typeof __gRPC_devtools__ === "object" &&
__gRPC_devtools__ !== null &&
__gRPC_devtools__.gRPCDevtoolsUnaryInterceptor;
const unaryInterceptors = gRPCDevtoolsUnaryInterceptor
? [gRPCDevtoolsUnaryInterceptor]
: [];
const client = new ChatServicePromiseClient(hostname, credentials, {
unaryInterceptors: unaryInterceptors,
streamInterceptors: streamInterceptors,
});
TypeScript
import type { StreamInterceptor, UnaryInterceptor } from "grpc-web";
declare const __gRPC_devtools__:
| undefined
| {
gRPCDevtoolsStreamInterceptor: StreamInterceptor<unknown, unknown>;
gRPCDevtoolsUnaryInterceptor: UnaryInterceptor<unknown, unknown>;
};
TODOs
- Search
Recommend
-
175
vue-devtools Installation Important Usage Notes If the page uses a production/minified build of Vue.js, devtools inspection is disabled by default so the Vue pane won't show up. To m...
-
30
In this post, we cover advanced techniques using Chrome DevTools, which will further improve the skills you have obtained in the first part of this series. Have you mastered the way to inspect the generated HTML...
-
45
README.md
-
39
Script debugging is one of the most powerful and complex productivity features in the web developer toolbox. Done right, it empowers developers to fix bugs quickly and efficiently. So the question for us, the Firefox DevT...
-
64
r/javascript: All about the JavaScript programming language!
-
45
Script debugging is one of the most powerful and complex productivity features in the web developer toolbox. Done right, it empowers developers to fix bugs quickly and efficiently. The DevTools ...
-
67
README.md iOS WebKit Debug Proxy The ios_webkit_debug_proxy (aka iwdp) proxies requests from usbmuxd daemon over a websocket connect...
-
19
中文 Chii Remote debugging tool like weinre...
-
7
Debugging WebAssembly with Chrome DevToolsGet to know the tool stack for WebAssembly debugging
-
4
English | 简体中文 基于React开发的移动web调试工具 使用cdn方式,一键接入 类Chrome devtools, 支持日志,网络,存储,性能等, 具有更好的网络捕获能力和丰富的日志展现...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK