https://github.com/rayyannafees/astro-reveal
RevealJS client app hosted on Astro Server via Server Sent Events
https://github.com/rayyannafees/astro-reveal
Last synced: 6 months ago
JSON representation
RevealJS client app hosted on Astro Server via Server Sent Events
- Host: GitHub
- URL: https://github.com/rayyannafees/astro-reveal
- Owner: RayyanNafees
- Created: 2023-12-31T13:25:25.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-04T11:29:38.000Z (about 2 years ago)
- Last Synced: 2025-03-12T04:28:15.857Z (10 months ago)
- Language: Astro
- Size: 113 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 03_sse-counter
[../03_sse-counter](../03_sse-counter)
* integration : [@astrojs/node](https://docs.astro.build/en/guides/integrations-guide/node/)
* adapter : node-standalone
* [Server Endpoints](https://docs.astro.build/en/core-concepts/endpoints/#server-endpoints-api-routes)
* [ReadableStream](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream)
* remove Listener on cancel () thanks to https://github.com/0xk1f0/astro-sse-example
SSE: Server Sent Events. global var using a timer and Emitter
Server keeps couter state. reloading the page has no effect on the counter
requires Node18 for ReadableStream(), currently only on Gitpod


[](https://gitpod.io/?on=gitpod#https://github.com/MicroWebStacks/astro-examples/tree/main/03_sse-counter)