import PluginsIPCService from '../services/service.plugins.ipc' ; import * as Toolkit from 'chipmunk.client.toolkit' ; export default class ControllerPluginIPC extends Toolkit . IPC { public send ( message , streamId ? ) { PluginsIPCService . sendToHost ( message , this . token , streamId ) ; return Promise . resolve ( ) ; } public request ( message , streamId ? ) { return PluginsIPCService . requestFromHost ( message , this . token , streamId ) ; } }