import {createServer} from 'nice-grpc'; import {ExampleServiceDefinition} from './compiled_proto/example'; const server = createServer(); server.add(ExampleServiceDefinition, exampleServiceImpl); await server.listen('0.0.0.0:8080');Once we need to stop, gracefully shut down the server:await ...
import {createServer} from 'nice-grpc'; import { HealthDefinition, HealthServiceImpl, HealthState, } from 'nice-grpc-server-health'; const server = createServer(); const healthState = HealthState(); server.add(HealthDefinition, HealthServiceImpl(healthState)); // Add our own service server.ad...
A TypeScript gRPC library that is nice to you. Contribute to deeplay-io/nice-grpc development by creating an account on GitHub.
import {createChannel, createClient, Client} from 'nice-grpc'; import {ExampleServiceDefinition} from './compiled_proto/example'; const channel = createChannel('localhost:8080'); const client = createClient(ExampleService, channel); const client: Client<typeof ExampleServiceDefinition> = createClie...
李锋:。李锋入驻抖音,TA的抖音号是47406134219,已有40个粉丝,收获了112个喜欢,欢迎观看李锋在抖音发布的视频作品,来抖音,记录美好生活!
import{createChannel,createClient,Client}from'nice-grpc';import{ExampleService,IExampleService,}from'./compiled_proto/example_grpc_pb';constchannel=createChannel('http://localhost:8080');constclient:Client<IExampleService>=createClient(ExampleService,channel); ...
"grpc", "promise", "async-iterable" "private": true, "workspaces": [ "packages/*" ], "repository": "deeplay-io/nice-grpc", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ "lib", "src", "!src/**/*.test.ts", "!src/**/__tests__" ], "scripts":...