Starn is a simple and fast messaging system.
Starn is an MIT-licensed open source project.
npm install starn
yarn add starn
import { Starn } from 'starn';
const starn = new Starn({
port: 2222,
host: "localhost",
topics: ["A"]
});
const sender = starn.sender()
sender.sendMessage("A", "Hello A");
const client = starn.client();
client.getMessage("A", data => console.log(data));