fivdi / epoll

A low-level Node.js binding for the Linux epoll API
MIT License
84 stars 13 forks source link

Electron - Requiring Native Modules in the Renderer Process to be NAPI or Context Aware #42

Open David-University opened 3 years ago

David-University commented 3 years ago

As mentioned in the following issue for electron, support for native modules that are not NAPI or Context Aware are going to be dropped. Electron Issue

This will result in applications that use epoll/onoff being broken after Electron 12.

Applications based on electron 10+ require the flag app.allowRendererProcessReuse = false in the Electron main.js.

fivdi commented 3 years ago

I guess it would make sense to migrate from NAN to N-API to resolve this issue.

@David-University do you use Electron on a Raspberry Pi (or similar)? I don't have any idea of how many people do this.

David-University commented 3 years ago

I use Electron on a raspberry Pi 3 and raspberry Pi 4.

fivdi commented 3 years ago

Ok. I'm not sure if I'll get around to this any time soon.

Liczi commented 2 years ago

Hi @fivdi, are you planning to tackle this?

Regards, Jakub

fivdi commented 2 years ago

Not at the moment.