Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setCheckpoint and continuePolling undefined on kinesis client object #468

Open
deanMdreon opened this issue Jun 30, 2021 · 1 comment
Open

Comments

@deanMdreon
Copy link

The readme seemed to suggest these functions should be called but they appear to be inaccessible from the the kinesis client object. Is there something I am missing? Are they made available in some way to be called?

@d-mon-
Copy link
Contributor

d-mon- commented Jul 7, 2021

Hello,
I guess you are referring to setCheckpoint ?

Both functions are returned in the handler for the data event:

kinesis.on('data', data => {
  console.log('Incoming data:', data.setCheckpoint, data.continuePolling);
});

const propsToPush = {
millisBehindLatest: msBehind,
records,
shardId,
streamName,
...(!useAutoCheckpoints && { setCheckpoint }),
...(usePausedPolling && { continuePolling })
};
pushToStream(null, propsToPush);

@deanMdreon deanMdreon changed the title setCheckout and continuePolling undefined on kinesis client object setCheckpoint and continuePolling undefined on kinesis client object Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants