UNPKG

@mediarithmics/plugins-nodejs-sdk

Version:

This is the mediarithmics nodejs to help plugin developers bootstrapping their plugin without having to deal with most of the plugin boilerplate

23 lines (16 loc) 423 B
import { BasePlugin } from "./BasePlugin"; import { Server } from "http"; export class TestingPluginRunner { plugin: BasePlugin; server: Server; constructor(plugin: BasePlugin, transport?: any) { this.plugin = plugin; if(transport) { this.plugin._transport = transport; } } // Start a server serving the plugin app // A port can be provided to run the server on it start() { } }