node-onion-plugin
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -42,3 +42,4 @@ const Logger = require('cpclog'); | ||
async callPluginFn() { | ||
async callPluginMethod(method, ctx) { | ||
await this.pluginFns[method](ctx); | ||
} | ||
@@ -45,0 +46,0 @@ |
{ | ||
"name": "node-onion-plugin", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "OnionPlugin.js", |
@@ -17,7 +17,8 @@ #!/usr/bin/env node | ||
setInterval(() => { | ||
setInterval(async () => { | ||
let ctx = {req: 'TheRequest'}; | ||
onionPlugin.pluginFns.msgIn(ctx); | ||
//onionPlugin.pluginFns.msgIn(ctx); | ||
await onionPlugin.callPluginMethod('msgIn', ctx); | ||
}, 2000); | ||
// vim:set tw=0: |
10410
275