A node impl of wcferry nanomsg clients
npm i @wcferry/core
import { Wcferry } from '@wcferry/core';
const client = new Wcferry({ port: 10086 });
client.start();
const isLogin = client.isLogin();
// start receiving message
const off = client.on((msg) => {
console.log('received message:', msg);
});
// stop reciving message
off();
// close
client.stop();
Run nx build core
to build the library.
Run nx build:dll core
to download and unzip latest wcferry components into .binary/
Run nx build:proto core
to build latest pb to src/lib/proto-generated/
Run nx test core
to execute the unit tests via Vitest.