Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 436 Bytes

File metadata and controls

26 lines (17 loc) · 436 Bytes

@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

MIT

Copyright (c) 2019-present, yunjie (Evio) shen