Skip to content

A channeled messaging protocol implementation on top of TCP/TLS server and socket to enable rxjs messaging

License

Notifications You must be signed in to change notification settings

svi3c/rx-messaging

Repository files navigation

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());

About

A channeled messaging protocol implementation on top of TCP/TLS server and socket to enable rxjs messaging

Resources

License

Stars

Watchers

Forks

Packages

No packages published