commit | df9d3d059ec91627a839376bc83d9118b3581774 | [log] [tgz] |
---|---|---|
author | Yosi Attias <yosy101@gmail.com> | Mon Jun 29 08:09:17 2020 +0300 |
committer | GitHub <noreply@github.com> | Mon Jun 29 14:09:17 2020 +0900 |
tree | 4f76cdee83980bce99e71bfebf351d73ed7fd877 | |
parent | a933a0e194447cbfa1c9653ca60dd94f220a0666 [diff] |
Fix consumer double close (#96) We do `Unref` more than once in the old code, now we do `Unref` only if the consumer is closed.
The Pulsar Node.js client can be used to create Pulsar producers and consumers in Node.js.
Pulsar Node.js client library is based on the C++ client library. Follow the instructions for C++ library for installing the binaries through RPM, Deb or Homebrew packages.
(Note: you will need to install not only the pulsar-client library but also the pulsar-client-dev library)
Also, this library works only in Node.js 10.x or later because it uses the node-addon-api module to wrap the C++ library.
Compatibility between each version of the Node.js client and the C++ client is as follows:
Node.js client | C++ client |
---|---|
1.0.0 | 2.3.0 or later |
1.1.0 | 2.4.0 or later |
If an incompatible version of the C++ client is installed, you may fail to build or run this library.
$ npm install pulsar-client
$ npm install @types/pulsar-client --save-dev
Please refer to examples.
$ git clone https://github.com/apache/pulsar-client-node.git $ cd pulsar-client-node $ npm install
$ npm run build