Events
Static Method Summary
Static Public Methods | ||
public static |
methodName(evt: String): String generates an evented method name from an event |
|
public static |
methodize(klass: *, dict: *) extends a prototype with an Event Dictionary |
|
public static |
adds namespaced event handlers to |
Static Public Methods
public static methodName(evt: String): String source
generates an evented method name from an event
Params:
Name | Type | Attribute | Description |
evt | String |
public static methodize(klass: *, dict: *) source
extends a prototype with an Event Dictionary
Params:
Name | Type | Attribute | Description |
klass | * | ||
dict | * |
public static namespace(evtMap: Object, ctx: Any): * source
adds namespaced event handlers to process.on("message")
Params:
Name | Type | Attribute | Description |
evtMap | Object | a key, value dictionary of namespaces |
|
ctx | Any | the |
Return:
* |
Example:
process.on('message',
namespace({
job: this.run
}, this)
)