Skip to content

Commit 326e65a

Browse files
authored
feat: add Unix socket support (#97)
Signed-off-by: Michael Beemer <[email protected]>
1 parent d6db366 commit 326e65a

File tree

4 files changed

+286
-153
lines changed

4 files changed

+286
-153
lines changed

libs/providers/flagd/README.md

+12
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ Run `nx test providers-flagd` to execute the unit tests via [Jest](https://jestj
2424

2525
The `FlagdProvider` client constructor takes a single optional argument with 3 fields, their default values correspond to the default arguments supplied to the flagd server:
2626

27+
### Example using TCP
28+
2729
```
2830
OpenFeature.setProvider(new FlagdProvider({
2931
host: 'localhost',
@@ -32,6 +34,16 @@ The `FlagdProvider` client constructor takes a single optional argument with 3 f
3234
}))
3335
```
3436

37+
### Example using a Unix socket
38+
39+
```
40+
OpenFeature.setProvider(new FlagdProvider({
41+
socketPath: "/tmp/flagd.socks",
42+
}))
43+
```
44+
45+
**service**: "http" | "grpc" _(defaults to http)_
3546
**host**: string _(defaults to "localhost")_
3647
**port**: number _(defaults to 8013)_
3748
**protocol**: "http" | "https" _(defaults to http - only active for http service)_
49+
**socketPath**: string _(optional)_

0 commit comments

Comments
 (0)