commit | 52777a81a3c29c94d79d77430dcf946df5ded2cc | [log] [tgz] |
---|---|---|
author | savearray2 <46784573+savearray2@users.noreply.github.com> | Wed Sep 23 17:25:39 2020 +0900 |
committer | GitHub <noreply@github.com> | Wed Sep 23 17:25:39 2020 +0900 |
tree | 21398067863c3c6854aa5bbd75365b9ff61da9cd | |
parent | dc0b4c855ef5bfd98ef269a12cd58ae44684021d [diff] |
Adds deliverAt and deliverAfter support to Producer (#123) Updates Message.cc to include support for delayed delivery from the C++ client. (pulsar_message_set_deliver_after & pulsar_message_set_deliver_at) Co-authored-by: savearray2 <savearray2>
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 |
1.2.0 | 2.5.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