1.3.1 • Published 2 years ago

basic-messaging v1.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

1.3.1

2 years ago

1.3.0

2 years ago