Skip to content

Commit

Permalink
adding proxy to node
Browse files Browse the repository at this point in the history
  • Loading branch information
sigewuzhere committed Nov 28, 2019
1 parent dd71d68 commit edc48b5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/sdk-reference/node.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,14 @@ const keys = await configCatClient.getAllKeysAsync();
console.log(keys);
```

## Using ConfigCat behind a proxy
Provide your own proxy server settings (proxy server/port) by adding a `proxy` option parameter when creating the ConfigCat client.
```js
const options = { pollIntervalSeconds: 2, proxy: 'http://192.168.1.1:8080' }

let configCatClient = configcat.createClientWithAutoPoll('PKDVCLf-Hq-h-kCzMp-L7Q/HhOWfwVtZ0mb30i9wi17GQ', options );
```

## Sample Application

<a href="https://github.com/configcat/node-sdk/blob/master/samples/console" target="_blank">Sample Console App</a>
Expand Down

0 comments on commit edc48b5

Please sign in to comment.