Skip to content
This repository was archived by the owner on Apr 9, 2021. It is now read-only.

gRPC Web GA announcement blog post#765

Merged
hsaliak merged 3 commits intogrpc:masterfrom
hsaliak:grpc-web-ga
Oct 24, 2018
Merged

gRPC Web GA announcement blog post#765
hsaliak merged 3 commits intogrpc:masterfrom
hsaliak:grpc-web-ga

Conversation

@hsaliak
Copy link
Copy Markdown

@hsaliak hsaliak commented Oct 20, 2018

This is the post for gRPC-Web GA. PTAL.
/cc @lucperkins

I am targeting to publish this on Tuesday 23rd Oct.

Comment thread _posts/2018-10-23-grpc-web-ga.md Outdated
auto generated. To do this, you have a choice between the [Closure](https://developers.google.com/closure/compiler/) compiler
or the more widely used [CommonJS](https://requirejs.org/docs/commonjs.html).
This development process removes the need to manage concerns such as creating
custom JSOn seralization and deserialization logic, wrangling HTTP status codes
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JSON

```proto
protoc echo.proto \
--js_out=import_style=commonjs:./output \
--grpc-web_out=import_style=commonjs:./output
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this need to be on the PATH, or is it built in to proto by default?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--js_out is built into protoc. --grpc-web_out user has to compile by themselves. User has been able to follow these instructions - so we should be fine here.

Copy link
Copy Markdown

@carl-mastrangelo carl-mastrangelo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nit, but LGTM

var metadata = {};
var getTodo = todoService.getTodoById(getTodoRequest, metadata, (err, response) => {
if (err) {
console.log(err);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not console.error?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Convention is usually just console.log for everything.

@hsaliak hsaliak merged commit 17fb762 into grpc:master Oct 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants