We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7eb9f42 + bda01f9 commit c5d35feCopy full SHA for c5d35fe
packages/grpc-reflection/README.md
@@ -21,12 +21,12 @@ npm install @grpc/reflection
21
Any gRPC-node server can use `@grpc/reflection` to expose reflection information about their gRPC API.
22
23
```typescript
24
-import { ReflectionServer } from '@grpc/reflection';
+import { ReflectionService } from '@grpc/reflection';
25
26
const pkg = protoLoader.load(...); // Load your gRPC package definition as normal
27
28
// Create the reflection implementation based on your gRPC package and add it to your existing server
29
-const reflection = new ReflectionServer(pkg);
+const reflection = new ReflectionService(pkg);
30
reflection.addToServer(server);
31
```
32
0 commit comments