Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
0.20.0+TLS (#55)
Browse files Browse the repository at this point in the history
0.20.0+TLS
  • Loading branch information
jwulf authored Jul 12, 2019
2 parents 7d2d346 + 9ed691d commit 9d0e6f2
Show file tree
Hide file tree
Showing 14 changed files with 369 additions and 401 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
test:
docker:
- image: circleci/node:11.10.1
- image: camunda/zeebe:0.18.0
- image: sitapati/zeebe:0.20.0
working_directory: ~/zeebe-client-node-js
steps:
- checkout
Expand Down
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ Docker-compose configurations for Zeebe are available at [https://github.com/zee

## Versioning

NPM Package version 1.x.x supports Zeebe 0.15/0.16.
NPM Package version 3.x.x supports Zeebe 0.19.

NPM Package version 2.x.x supports Zeebe 0.18.

NPM Package version 1.x.x supports Zeebe 0.15/0.16.

## Type difference from other Zeebe clients

Protobuf fields of type `int64` are serialised as type string in the Node library. These fields are serialised as numbers (long) in the Go and Java client. See [grpc/#7229](https://github.com/grpc/grpc/issues/7229) for why the Node library serialises them as string. The Workflow instance key, and other fields that are of type long in other client libraries, are type string in this library. Fields of type `int32` are serialised as type number in the Node library.
Expand Down Expand Up @@ -79,6 +81,16 @@ const zbc = new ZB.ZBClient(gatewayAddress, {

Retry is provided by [promise-retry](https://www.npmjs.com/package/promise-retry), and the back-off strategy is simple ^2.

### TLS

In case you need to connect to a secured endpoint, you can enable TLS.

```typescript
const zbc = new ZB.ZBClient(gatewayAddress, {
tls: true,
})
```

### Create a Task Worker

```javascript
Expand Down
Loading

0 comments on commit 9d0e6f2

Please sign in to comment.