@ones-open/node-host
Version:
ONES Open Platform Node.js plugin host
22 lines (21 loc) • 658 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PluginHandler = void 0;
const handler_1 = require("./handler");
class PluginHandler extends handler_1.Handler {
onMessage(message) {
if (!this.messageHandler) {
throw new Error('messageHandler is not assigned');
}
if (message.Plugin?.Http) {
//this.handleHttp(message)
}
if (message.Plugin?.RuntimeData) {
//this.handleGetRuntimeData(message)
}
if (message.Plugin?.ReadFile) {
//this.handleReadFile(message)
}
}
}
exports.PluginHandler = PluginHandler;