This just show an example on how to call JS functions from a C++ addon
be sure to have node-gyp installed
./update
./startup
Example result:
Event emitted from C++ with arguments { err: undefined, result: 'someArg' }
Event emitted from C++ with arguments { err: undefined, result: 'someArg' }
Event emitted from C++ with arguments { err: undefined, result: 'someArg' }
Event emitted from C++ with arguments { err: undefined, result: 'someArg' }
still live
Event emitted from C++ with arguments { err: undefined, result: 'someArg' }
Event emitted from C++ with arguments { err: undefined, result: 'someArg' }
Event emitted from C++ with arguments { err: undefined, result: 'someArg' }
Event emitted from C++ with arguments { err: undefined, result: 'someArg' }
Event emitted from C++ with arguments { err: undefined, result: 'someArg' }
Event emitted from C++ with arguments { err: undefined, result: 'someArg' }
still live
Event emitted from C++ with arguments { err: undefined, result: 'someArg' }
Event emitted from C++ with arguments { err: undefined, result: 'someArg' }
Event emitted from C++ with arguments { err: undefined, result: 'someArg' }
Event emitted from C++ with arguments { err: undefined, result: 'someArg' }
Event emitted from C++ with arguments { err: undefined, result: 'someArg' }
now die