You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added the snippet code into my own client.js file and changed client to my respective service and endpoint... reloaded the app inside chrome and I don't see anything being displayed in gRPC-Web under inspect window...
I'm confused on how to use this?
Let me know thanks,
The text was updated successfully, but these errors were encountered:
In case anyone meet this problem, here is the solution:
The "EchoServiceClient" in document is an example, actually you need to import the service client from the generated xxxx_grpc_web_pb.js
For example, my client is chatServiceClient, so I write like this:
import{ChatServiceClient}from"./protobuffer/chat_grpc_web_pb";constclient=newChatServiceClient("http://localhost:8080",null,null);// for debugconstenableDevTools=window.__GRPCWEB_DEVTOOLS__||(()=>{})enableDevTools([client]);
Installed extension and in Usage I see this:
const enableDevTools = window.GRPCWEB_DEVTOOLS || (() => {});
const client = new EchoServiceClient('http://myapi.com');
enableDevTools([
client,
]);
I added the snippet code into my own client.js file and changed client to my respective service and endpoint... reloaded the app inside chrome and I don't see anything being displayed in gRPC-Web under inspect window...
I'm confused on how to use this?
Let me know thanks,
The text was updated successfully, but these errors were encountered: