2.0.13 • Published 4 months ago
nice-grpc-server-reflection v2.0.13
nice-grpc-server-reflection 
Server Reflection for nice-grpc.
Allows to use tools like grpcurl
without the need to pass .proto
files.
Installation
npm install nice-grpc-server-reflection
Usage
Add the following flags to protoc
command:
--descriptor_set_out=path/to/protoset.bin --include_imports
Add ServerReflection
service implementation to gRPC server:
import {createServer} from 'nice-grpc';
import {
ServerReflectionService,
ServerReflection,
} from 'nice-grpc-server-reflection';
import * as fs from 'fs';
const server = createServer();
// add our own service
server.add(MyService, myServiceImpl);
// add server reflection service
server.add(
ServerReflectionService,
ServerReflection(
fs.readFileSync(path.join('path', 'to', 'protoset.bin')),
// specify fully-qualified names of exposed services
[MyService.fullName],
),
);
2.0.13
4 months ago
2.0.12
9 months ago
2.0.11
1 year ago
2.0.10
1 year ago
2.0.9
2 years ago
2.0.8
2 years ago
2.0.7
2 years ago
2.0.3
2 years ago
2.0.2
2 years ago
2.0.5
2 years ago
2.0.4
2 years ago
2.0.6
2 years ago
2.0.1
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
2.0.0
3 years ago
1.0.12
3 years ago
1.0.9
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.2
4 years ago
1.0.3
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago
0.1.0-alpha.0
4 years ago