gRPC for Chatie
Project description
GRPC
![Go](https://pypi-camo.freetls.fastly.net/da7267ef5f8e7f4182fff1b9621c99beb3dc548f/68747470733a2f2f6769746875622e636f6d2f6368617469652f677270632f776f726b666c6f77732f476f2f62616467652e737667)
gRPC for Chatie
Usage
Node.js
Python
Go
Build
./scripts/install-protoc.sh
npm install
Generate Stubs
npm run generate
1. JS for Protocol Buffer
protoc \
--js_out="import_style=commonjs,binary:${OUT_DIR}"
2. JS for gRPC Stubs
protoc \
--plugin="protoc-gen-grpc=`which grpc_tools_node_protoc_plugin`" \
--grpc_out="${OUT_DIR}"
3. TypeScript Typing Definations for Protocol Buffer & gRPC Stubs
protoc \
--plugin="protoc-gen-grpc=node_modules/grpc_tools_node_protoc_ts/bin/protoc-gen-ts" \
--grpc_out="${OUT_DIR}"
4. JS & TS for gRPC Web
protoc \
--plugin="protoc-gen-ts=node_modules/ts-protoc-gen/bin/protoc-gen-ts" \
--ts_out="service=true:${OUT_DIR}"
Development
gRPC CLI Debug
grpcc --proto ./service/myservice.proto --address 127.0.0.1:3466
Documentatoin
- Protocol Buffers Language Guide (proto3)
- Google Protocol Buffers Style Guide
- Protocol Buffers for TypeScript with Decorators
- Troubleshooting gRPC
- gRPC environment variables
- How to Interact With and Debug a gRPC Server
Resources
- 探讨gRPC的Node技术生态及实现工具
- gRPC Basics - Node.js
- Building a gRPC service with Node.js
- gRPC in 3 minutes (Node.js)
- Listen gRPC and HTTP requests on the same port
- gRPC to JSON proxy generator following the gRPC HTTP spec
- 如何在 Node.js 中更优雅地使用 gRPC:grpc-helper
Protocol Buffer
- Protocol Buffers for JavaScript (& TypeScript)
- Missing value/null support for scalar value types in proto 3
- How to Make a Nullable Field in Proto3 for a HTTP Response?
gRPC Web
- gRPC-Web: Moving past REST+JSON towards type-safe Web APIs
- Library for making gRPC-Web requests intended for TypeScript from either a browser or Node.js.
TypeScript Generator
- A Typescript definition file generator for gRPC services
- gRPC Web TypeScript Code Generation
- Protocol Buffers Compiler (protoc) plugin for TypeScript and gRPC-Web.
Zoo Keeper
STUN
- How To TCP NAT Traversal using Node.js and a STUN Server
- chownat, allows two peers behind two separate NATs to directly communicate with each other.
- What is STUN & TURN Server
- NPM Search for: NAT Traversal
- NAT traversal by way of UPnP or NAT-PMP
- How To TCP NAT Traversal using Node.js and a STUN Server
- STUN, TURN, and ICE - AnyConnect pioneered the STUN, TURN, and ICE NAT Traversal protocols
- What are STUN, TURN, and ICE?
- Set Phasers to STUN/TURN: Getting Started with WebRTC using Node.js, Socket.io and Twilio’s NAT Traversal Service
TCP hole punching
Reverse Engineering
Python Stub
History
v0.11 (Apr 2020)
v0.6 (Feb 2020)
- Align gRPC Services with Wechaty Puppet Abstraction
- Add Unit Tests
v0.2 (Jul 2018)
- Automatic Generating gRPC Stubs
- Publish to NPM
v0.0.1 (May 2018)
Initial commiit
Author
Copyright & License
- Code & Docs © 2018-now Huan LI <zixia@zixia.net>
- Code released under the Apache-2.0 License
- Docs released under Creative Commons
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chatie-grpc-0.11.dev12.tar.gz
(8.2 kB
view hashes)
Built Distribution
Close
Hashes for chatie_grpc-0.11.dev12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8552d370a56cbc85dd277842e93d9a3f02e368817ec6a431571f42a307d212d |
|
MD5 | 3f97d92c0ef28b4c5ac326adcba440d0 |
|
BLAKE2b-256 | c66fa3a24bed62db3b46dfdf5af1f682ecde5c81f2f39f909345f7b03120c3a9 |