# basic-messaging

> Simple node based networking.

Latest version **1.3.1** (published 2022-10-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install basic-messaging
pnpm add basic-messaging
yarn add basic-messaging
bun add basic-messaging
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.1 |
| Published | 2022-10-13 |
| First published | 2022-10-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | lolotrgeek |
| Maintainers | lolotrgeek |

## Links

- npm: https://www.npmjs.com/package/basic-messaging
- Repository: https://github.com/lolotrgeek/basic-messaging
- Homepage: https://github.com/lolotrgeek/basic-messaging#readme
- Issues: https://github.com/lolotrgeek/basic-messaging/issues
- npm.io page: https://npm.io/package/basic-messaging

## Dependencies (1)

- [cote](https://npm.io/package/cote.md) ^1.0.3

## Recent versions

- 1.3.1 (latest) — 2022-10-13
- 1.3.0 — 2022-10-11

## README

# Basic
Simple node based networking.

## Usage

```
const {Node} = require('basic-messaging')

const node = new Node("new_node")
node.listen("hi", (message, name) => console.log(message, name))
node.send("hi", "world")

```

## Branches

- `master` stable implementation
- `process` implements low level emergent computational engine

- all other branches are experimental

## Tests
- case 1 - start send node, then start listen node --> works
- case 2 - start listen node, start send node --> works
- case 3 - send node running, stop listen node, restart listen node --> works
- case 4 - listen node running, stop send node, restart send node --> works
- case 5 - 2 or more listener nodes, stop and restart one listener node, reconnects to other listener node before others --> works

## Todo


## Credits
- Based on https://github.com/dashersw/cote

---
_Source: https://npm.io/package/basic-messaging · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
