This commit is contained in:
delvedor
2020-10-21 11:07:37 +02:00
8 changed files with 124 additions and 79 deletions

View File

@ -149,7 +149,9 @@ const client = new Client({
const client = new Client({
node: 'http://localhost:9200',
agent: () => new CustomAgent()
// the function takes as parameter the option
// object passed to the Connection constructor
agent: (opts) => new CustomAgent()
})
const client = new Client({