Skip to content

Commit

Permalink
Fixes docs
Browse files Browse the repository at this point in the history
Signed-off-by: Elena Kolevska <[email protected]>
  • Loading branch information
elena-kolevska committed Sep 27, 2023
1 parent 94f271e commit 3b27c23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daprdocs/content/en/js-sdk-docs/js-client/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ You can use the `DAPR_HTTP_ENDPOINT` and `DAPR_GRPC_ENDPOINT` environment variab
import { DaprClient, CommunicationProtocol } from "@dapr/dapr";

// Using HTTP, when DAPR_HTTP_ENDPOINT is set
const client = new DaprClient({ daprHost, daprPort });
const client = new DaprClient();

// Using gRPC, when DAPR_GRPC_ENDPOINT is set
const client = new DaprClient({ communicationProtocol: CommunicationProtocol.GRPC });
Expand Down

0 comments on commit 3b27c23

Please sign in to comment.