Skip to content

Commit

Permalink
doc: specify event uri and streaming uri (#9)
Browse files Browse the repository at this point in the history
* Added EventUri and StreamingUri params in Dependency Injection Code Example

The first time I tried dependency injection without these two configurations, it gave me no warning, it just did not work.

I only found the error by examining the log.

So I think it's much better to add these two variables to the sample code. For better UX

* update

---------

Co-authored-by: deleteLater <[email protected]>
  • Loading branch information
cosmic-flood and deleteLater authored Oct 17, 2023
1 parent 4a7a089 commit f038bb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Follow the documentation below to retrieve these values

- [How to get the environment secret](https://docs.featbit.co/docs/sdk/faq#how-to-get-the-environment-secret)
- [How to get the SDK URLs](https://docs.featbit.co/docs/sdk/faq#how-to-get-the-sdk-urls)

### Quick Start

The following code demonstrates basic usage of FeatBit.ServerSdk.
Expand Down Expand Up @@ -143,6 +143,8 @@ builder.Services.AddControllers();
builder.Services.AddFeatBit(options =>
{
options.EnvSecret = "<replace-with-your-env-secret>";
options.StreamingUri = new Uri("ws://localhost:5100");
options.EventUri = new Uri("http://localhost:5100");
options.StartWaitTime = TimeSpan.FromSeconds(3);
});

Expand Down

0 comments on commit f038bb6

Please sign in to comment.