Skip to content

Instantly share code, notes, and snippets.

@markbirbeck
Created October 29, 2018 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markbirbeck/6dc909b88cf57a45e8aa6aa3d9c3f3c8 to your computer and use it in GitHub Desktop.
Save markbirbeck/6dc909b88cf57a45e8aa6aa3d9c3f3c8 to your computer and use it in GitHub Desktop.
class ElasticSearchWritableStream extends stream.Writable {
constructor(config, options) {
super(options)
this.config = config
/**
* Create the ElasticSearch client:
*/
this.client = new elasticsearch.Client({
host: this.config.host
})
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment