Browse Source

Add optional require statement for client

v4_proto
Paul 5 years ago
parent
commit
83b88fc015
  1. 1
      samples/simple.js
  2. 1
      samples/store-event.js
  3. 2
      samples/subscribe-all-events.js
  4. 2
      samples/subscribe-catchup-all-events.js

1
samples/simple.js

@ -1,3 +1,4 @@
// const client = require('../src/client')
const client = require("eventstore-node")
const uuid = require("uuid")

1
samples/store-event.js

@ -1,3 +1,4 @@
// const client = require('../src/client')
const client = require("eventstore-node")
const uuid = require("uuid")

2
samples/subscribe-all-events.js

@ -1,4 +1,6 @@
// Subscribe to all new events on the $all stream. Filter out any which aren"t about "user" aggregates.
// const client = require('../src/client')
const client = require("eventstore-node")
const resolveLinkTos = false

2
samples/subscribe-catchup-all-events.js

@ -1,5 +1,7 @@
// Subscribe to all events on the $all stream. Catch up from the beginning, then listen for any new events as they occur.
// This could be used for subscribers which populate read models.
// const client = require('../src/client')
const client = require("eventstore-node")
const eventAppeared => (stream, event) =>

Loading…
Cancel
Save