docs: Update C# grpc docs to use Grpc.Net.Client

The Grpc.Core NuGet package is in maintentance mode. Grpc.Net.Client is now the recommended implementation.
This commit is contained in:
Jesse de Wit authored and Jesse de Wit committed 2021-09-20 12:20:46 +02:00
1 parent 6be472eb98
commit 0577a6086a
6 files changed
+63 -21

No files matched your search

+3 -1
View File
@@ -22,7 +22,9 @@ sources](https://github.com/lightningnetwork/lnd/blob/master/lnrpc/lightning.pro
### Imports and Client
Every time you work with Javascript gRPC, you will have to import `@grpc/grpc-js`, load
`lightning.proto`, and create a connection to your client like so:
`lightning.proto`, and create a connection to your client like so.
Note that when an IP address is used to connect to the node (e.g. 192.168.1.21 instead of localhost) you need to add `--tlsextraip=192.168.1.21` to your `lnd` configuration and re-generate the certificate (delete tls.cert and tls.key and restart lnd).
```js
const grpc = require('@grpc/grpc-js');