0.6.3 • Published 4 years ago

rx-nats v0.6.3

Weekly downloads
4
License
ISC
Repository
github
Last release
4 years ago

RX-NATS

Use nats as rxjs observable.

Feel free to dig around a try this lib.

NatsSubject

This represents subject in nats. It implements Subscriber so you can do things like this

of(1,2,3).subscribe(natsSubject)

Class provides hot and cold observable. The difference is, that cold observable subscribes to nats on rxjs subscription and unsubscribes on error or complete. Hot observable need you to subscribe and unsubscribe manually on NatsSubject. Hot observable is good for robust error handling.

Example:

subject.hot.pipe(tap(handleRequest),retry()).subscribe()

this snippet is example, how to not get disconnected, when some error happen.

0.6.3

4 years ago

0.6.2

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.0.2

5 years ago