Grpc-node: Bind Async

Created on 4 May 2020  路  2Comments  路  Source: grpc/grpc-node

After i changed server.bind to bindAsync
i am getting TypeError: callback must be a function

As a result i passed a function as a third parameter then i am getting
Error: server must be bound in order to start

How can i convert grpc to grpc-js :(

Most helpful comment

server.bindAsync is an async function, so the callback function indicates that the operation is complete. So, you should call server.start in the callback.

All 2 comments

server.bindAsync is an async function, so the callback function indicates that the operation is complete. So, you should call server.start in the callback.

yes i discovered that thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shotor picture shotor  路  3Comments

bkw picture bkw  路  5Comments

keyvhinng picture keyvhinng  路  5Comments

moloch-- picture moloch--  路  5Comments

badoet picture badoet  路  4Comments