Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hemerajs/hemera-sse
Stream Updates with HTTP/2 Server-Sent Events & Hemera
https://github.com/hemerajs/hemera-sse
hemerajs http2 nats-messaging node-js server-sent-events
Last synced: 6 days ago
JSON representation
Stream Updates with HTTP/2 Server-Sent Events & Hemera
- Host: GitHub
- URL: https://github.com/hemerajs/hemera-sse
- Owner: hemerajs
- License: mit
- Created: 2018-03-31T17:39:52.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-04T21:27:23.000Z (almost 7 years ago)
- Last Synced: 2024-11-14T23:08:21.354Z (2 months ago)
- Topics: hemerajs, http2, nats-messaging, node-js, server-sent-events
- Language: JavaScript
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hemera-sse
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](#badge)Stream Updates with HTTP/2 Server-Sent Events & Hemera
* Frontend with [`Vuejs`](https://vuejs.org/), [`Parcel bundler`](https://parceljs.org/)
* Backend with [`NATS messaging system`](https://nats.io/), [`Hemera`](https://hemerajs.github.io/hemera/) and [`Fastify`](https://www.fastify.io/)## Getting started
[Download](http://nats.io/download/nats-io/nats-streaming-server/) and start nats-streaming-server
```
npm start
```## Goals
* Subscribe to Hemera events and **[Named events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events)** in the frontend
* Subscribe to durable message queue via Hemera/[NATS-Streaming](https://github.com/hemerajs/hemera-nats-streaming)
* Reply message at special HTTP header (Last-Event-ID) in NATS-Streaming
* Use HTTP2 to be more efficient multiplexing, header-compression ...
* Stream JSON## TODO
- [X] Setup frontend
- [X] Setup backend
- [X] Try SSE with HTTP/1
- [ ] Use HTTP/2
- [ ] Use Hemera