Skip to content

Commit c5d35fe

Browse files
authored
Merge pull request #2634 from Spinny03/master
fix grpc-reflection README: rename import
2 parents 7eb9f42 + bda01f9 commit c5d35fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/grpc-reflection/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ npm install @grpc/reflection
2121
Any gRPC-node server can use `@grpc/reflection` to expose reflection information about their gRPC API.
2222

2323
```typescript
24-
import { ReflectionServer } from '@grpc/reflection';
24+
import { ReflectionService } from '@grpc/reflection';
2525

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

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

0 commit comments

Comments
 (0)