0.1.7 • Published 1 year ago
@ipsme/reflector-electron-ipc-window v0.1.7
App.js
import * as IPSME_MsgEnv_BC from '@ipsme/msgenv-broadcastchannel'; import { Reflector_IPC_window } from '@ipsme/reflector-electron-ipc-window';
//------------------------------------------------------------------------------------------------- // reflector bc <-> ipc
const reflectorIPC_window = new ReflectorIPC_window(window); reflector_IPC_window.init();
//-------------------------------------------------------------------------------------------------
function handler_App(msg) { console.log('handler_App: msg: ', msg);
} IPSME_MsgEnv_BC.subscribe(handler_App);
IPSME_MsgEnv_BC.publish('BOOHAG');