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

feat: post message to worker when message event is emitted #145

Merged
merged 2 commits into from
Apr 22, 2024
Merged

feat: post message to worker when message event is emitted #145

merged 2 commits into from
Apr 22, 2024

Conversation

10xLaCroixDrinker
Copy link
Contributor

@10xLaCroixDrinker 10xLaCroixDrinker commented Mar 22, 2024

PR 1 of 3 for pinojs/pino#1925

Relates to pinojs/pino#1930
Relates to pinojs/pino-abstract-transport#90

Adds the ability to post a message in the worker by emitting a message event on the stream. This isn't strictly required for the feature, but considering the intention to make this.worker private. I didn't think it would be best to call stream.worker.postMessage directly.

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@10xLaCroixDrinker
Copy link
Contributor Author

@mcollina can we ship this?

@mcollina mcollina merged commit f7516e1 into pinojs:main Apr 22, 2024
11 of 17 checks passed
@10xLaCroixDrinker 10xLaCroixDrinker deleted the feature/postmessage-on-message-event branch April 22, 2024 19:25
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.

2 participants