rx-messaging
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

rx-messaging

Build Status

A lightweight tcp/tls messaging protocol implementation based on rxjs.

Example

import {RxServer, RxClient} from "rx-messaging";
 
let server = new RxServer()
server.channel("my-channel").messages$
  .subscribe(msg => {
    console.log(msg.data);
    server.close();
  });
server.listen(12345);
 
let client = new RxClient({port: 12345});
client.connect();
client.send("my-channel", {foo: "bar"});
  .then(() => client.disconnect());

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    3
  • 0.1.0
    1
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i rx-messaging

Weekly Downloads

3

Version

0.1.1

License

MIT

Last publish

Collaborators

  • svi3c