0.8.0 • Published 4 months ago
ipmb-js v0.8.0
The ipmb-js
package is Node.js binding for ipmb,
an interprocess message bus system built in Rust.
Usage
const { join, LabelOp, SelectorMode } = require('ipmb-js');
let { sender, receiver } = join({
identifier: 'com.solar',
label: ['earth'],
token: '',
controllerAffinity: true,
}, null);
(async () => {
while (true) {
let msg = await receiver.recv(null);
console.log(msg.bytesMessage);
let region = msg.memoryRegions[0];
if (region) {
// Map the memory region from 0 to end
console.log(region.map(0, -1));
}
}
})()
let selector = {
labelOp: new LabelOp("moon"),
mode: SelectorMode.Unicast,
ttl: 0
};
let bytesMessage = { format: 0, data: Buffer.alloc(8) };
sender.send(selector, bytesMessage, []);
0.8.0-20241122
8 months ago
0.8.0
4 months ago
0.8.0-20241011
9 months ago
0.7.13
1 year ago
0.7.12
1 year ago
0.7.14
12 months ago
0.8.0-20240814
11 months ago
0.8.0-20240814.1
11 months ago
0.7.11
1 year ago
0.7.10
2 years ago
0.7.9
2 years ago
0.7.8
2 years ago
0.7.7
2 years ago
0.7.6
2 years ago
0.7.5
2 years ago
0.7.4
2 years ago
0.7.3
2 years ago