Skip to content

clobberos/xpc-connect

Folders and files

NameName
Last commit message
Last commit date
Jun 7, 2023
Oct 14, 2021
May 29, 2019
May 29, 2019
Jun 19, 2019
Oct 25, 2013
May 17, 2023
Jun 19, 2019
Jun 19, 2019
Oct 14, 2021
Jun 12, 2023
Jun 10, 2023

Repository files navigation

Install | Contributing

xpc-connect

GitHub Actions build status downloads Contributor count

XPC Services connection bindings for node.js

This is a continuation of xpc-connection https://github.com/sandeepmistry/node-xpc-connection

Supported data types

  • int32/uint32
  • string
  • array
  • buffer
  • uuid
  • object

Install

npm install xpc-connect

Example

const XpcConnect = require('xpc-connect');
const xpcConnect = new XpcConnect('<Mach service name>');

xpcConnect.on('error', function(message) {
    ...
});

xpcConnect.on('event', function(event) {
    ...
});

xpcConnect.setup();

const mesage = {
    ... 
};

xpcConnect.sendMessage(mesage);

Contributing

Please checkout the contributing guide to learn about our release process.