How to use the ipc.send function in ipc

To help you get started, we’ve selected a few ipc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github yhat / rodeo / src / browser / jsx / containers / editor-tab-group / editor-tab-group.actions.js View on Github external
return function (dispatch, getState) {
    const state = getState(),
      groupIndex = 0, // assume for now
      group = state[tabGroupName][groupIndex],
      focusedAce = _.find(group.tabs, {id: group.active}),
      aceInstance = focusedAce && getAceInstance(focusedAce.id),
      content = aceInstance && aceInstance.getSession().getValue();

    if (_.isString(content)) {
      return send('saveFile', filename, content)
        .then(() => dispatch(fileIsSaved(group.groupId, focusedAce.id, filename)))
        .catch(error => dispatch(errorCaught(error)));
    }
  };
}
github numediart / ofxMotionMachine / projectGenerator-osx-MoMa / projectGenerator.app / Contents / Resources / app / app.js View on Github external
function getUpdatePath() {

    var path = $("#updateMultiplePath").val();
    if (path === ''){
        path = $("#ofPath").val();
    }

    ipc.send('pickUpdatePath', path); // current path could go here
}
github maxogden / screencat / app.js View on Github external
peer.on('error', function error (err) {
    ipc.send('icon', 'disconnected')
    console.error('peer error')
    console.error(err)
    ui.containers.content.innerHTML = 'Error connecting! Please Quit. ' + err.message
  })
github maxogden / screencat / app.js View on Github external
peer.on('close', function close () {
    ipc.send('icon', 'disconnected')
    showChoose()
  })
})
github ThorstenHans / electron-angular-es6 / app / browser / scripts / splash / controller.js View on Github external
openDevTools() {
    	var ipc = require('ipc');
		ipc.send('devTools', null);
    }
github HR / CryptoSync / static / index.html View on Github external
var updateOnlineStatus = function() {
			ipc.send('online-status-changed', navigator.onLine ? 'online' : 'offline');
		};
github dermike / slide-beacon-app / index.html View on Github external
function setUrl(url) {
          input.value = '';
          dialog.classList.add('hide');
          if (url) {
            ipc.send('set-url', url);
          }
        }
github maxkrieger / alienbox / src / app.js View on Github external
updateIconMode: function(){
			var force = true;
			if(this.newmail) force = false;
			ipc.send("darkmode", this.darkmode, force);
			this.saveConfig();
		},
		signOut: function() {
github brrd / Abricotine / app / renderer / ipc-client.js View on Github external
trigger: function (key, args, callback) {
        var id = this.registerCallback(callback);
        ipc.send("trigger", key, args, id, this.windowId);
    },

ipc

A simple inter process communication library along with distributed election algorithm (Bully) for Node.js

Unknown
Latest version published 12 years ago

Package Health Score

30 / 100
Full package analysis

Popular ipc functions