Skip to content

Subscribe to events - #9

Open
FauxFaux wants to merge 1 commit into
masterfrom
feat/fp
Open

Subscribe to events#9
FauxFaux wants to merge 1 commit into
masterfrom
feat/fp

Conversation

@FauxFaux

@FauxFaux FauxFaux commented Nov 22, 2021

Copy link
Copy Markdown

We're exposing a new subscribeToEvents member. Example usage in the application code:

import { subscribeToEvents } from 'node-dump-stacks';

subscribeToEvents((ev) => console.log(JSON.parse(ev)));

@agatakrajewska
agatakrajewska force-pushed the feat/fp branch 2 times, most recently from 2f78cbc to 71f7aa5 Compare November 22, 2021 16:02
@agatakrajewska agatakrajewska changed the title wip: subscribe to events Subscribe to events Nov 22, 2021
@agatakrajewska
agatakrajewska marked this pull request as ready for review November 22, 2021 16:03
@agatakrajewska agatakrajewska self-assigned this Nov 22, 2021
Comment thread src/dump-stacks.cc Outdated
static std::string last_stack = "";

/// this isn't shared, it's only used from the node thread
v8::Local<v8::Function> callback;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: I believe we can delete this and 33

@FauxFaux

Copy link
Copy Markdown
Author

Looks good to me. I can't approve it, as I raised it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants