Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.26 KB

README.md

File metadata and controls

51 lines (34 loc) · 1.26 KB

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.