mirror of https://github.com/grpc/grpc-web.git
Fix code typo in echo tutorial
This commit is contained in:
parent
825bda1091
commit
c3c5dada94
|
|
@ -135,7 +135,7 @@ Our command generates the client stub, by default, to the file
|
||||||
Now you are ready to write some JS client code. Put this in a `client.js` file.
|
Now you are ready to write some JS client code. Put this in a `client.js` file.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const {EchoRequest, EchoResponse} = require('./echo_pb.js'));
|
const {EchoRequest, EchoResponse} = require('./echo_pb.js');
|
||||||
const {EchoServiceClient} = require('./echo_grpc_web_pb.js');
|
const {EchoServiceClient} = require('./echo_grpc_web_pb.js');
|
||||||
|
|
||||||
var echoService = new EchoServiceClient('http://localhost:8080');
|
var echoService = new EchoServiceClient('http://localhost:8080');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue