Open junewunder opened 9 years ago
the API should be able to do things like play sounds and send notifications, but not in the main process. Maybe it'll be a reimplementation of the electron API, but it'll be specific to prattlebox. It should also use events in the background, because that's the only way to send stuff between the two processes
Sending events via ipc works... but it's not the best way to go about things. Instead there should be a
prattle
package. This will be the API for prattlebox used withvar pr = require('prattle');
.I think this is the best way because events can be misspelled and will pass silently, whereas a method can make better error handling and better argument handling. Making a prattle package with simplify things a lot.