Skip to content

Commit

Permalink
Merge pull request #2634 from Spinny03/master
Browse files Browse the repository at this point in the history
fix grpc-reflection README: rename import
  • Loading branch information
murgatroid99 authored Dec 14, 2023
2 parents 7eb9f42 + bda01f9 commit c5d35fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/grpc-reflection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ npm install @grpc/reflection
Any gRPC-node server can use `@grpc/reflection` to expose reflection information about their gRPC API.

```typescript
import { ReflectionServer } from '@grpc/reflection';
import { ReflectionService } from '@grpc/reflection';

const pkg = protoLoader.load(...); // Load your gRPC package definition as normal

// Create the reflection implementation based on your gRPC package and add it to your existing server
const reflection = new ReflectionServer(pkg);
const reflection = new ReflectionService(pkg);
reflection.addToServer(server);
```

Expand Down

0 comments on commit c5d35fe

Please sign in to comment.