@nelts/messager
messager for nelts
Usage
npm i @nelts/messager
by ts:
import { Base, Master, Worker, Agent } from '@nelts/messager';
const master = new Master<APP>(app);
const worker = new Worker<APP>(app, mpid);
const agent = new Agent<APP>(app, mpid);
[which target].receiveMessage(message, socket);
License
Copyright (c) 2019-present, yunjie (Evio) shen