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

Not compatible with cluster worker processes on Windows. #410

Open
zamb3zi opened this issue Jul 21, 2022 · 0 comments
Open

Not compatible with cluster worker processes on Windows. #410

zamb3zi opened this issue Jul 21, 2022 · 0 comments

Comments

@zamb3zi
Copy link

zamb3zi commented Jul 21, 2022

The following example generates "TypeError: handle.setSimultaneousAccepts is not a function" on Windows:

const cluster = require('cluster');
const notifier = require('node-notifier');

if(cluster.isPrimary) {
    cluster.fork();
    notifier.notify('OK'); // this works
} else {
    notifier.notify('Error'); // this generates handle.setSimultaneousAccepts is not a function
}

Tested with Windows 10, Node 16.16.0/16.13.2/16.13.1 and node-notifier 10.0.1 and 8.0.2.

Thanks!

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

No branches or pull requests

1 participant