A basic NodeJS Native module using nan to show how to make callbacks from native code while maintaing the wrapper objects context.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
addon.cpp
binding.gyp
index.js
package.json
test.cpp
test.h
test.js

README.md

An example native NodeJS module

A basic NodeJS Native module using nan to show how to make callbacks from native code while maintaing the wrapper objects context.

Description

This node module simulates a asynchronous process that reports status regularly using an event emitter pattern.

You can test it using the test.js script. This starts the service, lets it run for 5 seconds then shuts it down.