Skip to content

support flush on demand for node.js client #988

Closed as not planned
Closed as not planned
@kim5566

Description

@kim5566

hey team,

i'm wondering if node.js client could support flush on demand like the classic one does before,

analytics.flush(function(err, batch){
  console.log('Flushed, and now this program can exit!');
});

instead of call .closeAndFlush() to stop collecting new events.

The use case i have is, i have set flushAt, for example, 100 and let batch processing events.

There's one particular time sensitive event, when it fired, i want to send immediately instead of waiting for the batch.

But i still want to keep collecting new events after flush.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions