Skip to content

Commit

Permalink
Updated node-rdkafka and added globalConfig param
Browse files Browse the repository at this point in the history
  • Loading branch information
ancashoria committed Mar 15, 2019
1 parent 31aec7d commit 1ece239
Show file tree
Hide file tree
Showing 6 changed files with 832 additions and 808 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ One producer and one consumer for each node instance. Communication happens over
## Installation
`npm install graphql-kafka-subscriptions`

### Mac OS High Sierra / Mojave

OpenSSL has been upgraded in High Sierra and homebrew does not overwrite default system libraries. That means when building node-rdkafka, because you are using openssl, you need to tell the linker where to find it:

```sh
export CPPFLAGS=-I/usr/local/opt/openssl/include
export LDFLAGS=-L/usr/local/opt/openssl/lib
```

Then you can run `npm install` on your application to get it to build correctly.

## Usage
```javascript
import { KafkaPubSub } from 'graphql-kafka-subscriptions'
Expand Down
1 change: 1 addition & 0 deletions dist/kafka-pubsub.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export interface IKafkaOptions {
port: string;
logger?: Logger;
groupId?: any;
globalConfig?: object;
}
export interface IKafkaProducer {
write: (input: Buffer) => any;
Expand Down
10 changes: 3 additions & 7 deletions dist/kafka-pubsub.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/kafka-pubsub.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1ece239

Please sign in to comment.