Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grpc-getting-started

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grpc-getting-started - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

2

package.json

@@ -5,3 +5,3 @@ {

"name": "grpc-getting-started",
"version": "0.4.1",
"version": "0.4.2",
"main": "none",

@@ -8,0 +8,0 @@ "description": "Demonstration of the use of gRPC and front-end",

@@ -620,2 +620,4 @@ # gRPC 入门指引 (最初版)

> $ docker run -d --name envoy -p 12345:12345 envoy:v1
> # 不打包配置文件,直接使用本地配置文件路径,使用下面的命令
> $ docker run -d --name envoy -p 12345:12345 envoy:v1 -c /etc/envoy/envoy.yaml --config-yaml "$(cat <your-grpc-app>/envoy.yaml)"
> ```

@@ -622,0 +624,0 @@ >

@@ -623,2 +623,4 @@ # gRPC Getting Started (original version)

> $ docker run -d --name envoy -p 12345:12345 envoy:v1
> # Do not package the configuration file, directly use the local configuration file path, use the following command:
> $ docker run -d --name envoy -p 12345:12345 envoy:v1 -c /etc/envoy/envoy.yaml --config-yaml "$(cat <your-grpc-app>/envoy.yaml)"
> ```

@@ -625,0 +627,0 @@ >

@@ -78,12 +78,18 @@ import { PostList, Post, PostRow, FilterId } from '../proto/post_pb.js';

return new Promise((resolve, reject) => {
this.callPostServiceAddPost = client.addPost((err, res) => {
if (err) {
this.callPostServiceAddPost.end();
reject();
}
});
// this.callPostServiceAddPost = client.addPost({
// 'my-string': 'xxxxx-xxxxx-xxxxxx',
// });
this.callPostServiceAddPost = client.addPost();
this.callPostServiceAddPost.write(streamReq);
resolve();
this.callPostServiceAddPost.end();
this.callPostServiceAddPost.on('end', (response) => {
resolve({
code: response.code,
message: response.details
});
});
});

@@ -186,3 +192,3 @@ }

const resList = [];
if (typeof data.data === 'undefined') return {};
for (const item of data.data) {

@@ -189,0 +195,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc