• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

RobinTail / express-zod-api / 12245767980 / 2
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 09 Dec 2024 10:53PM UTC
Files 51
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Dec 2024 10:51PM UTC coverage: 100.0%. Remained the same
12245767980.2

push

github

web-flow
SSE (#2238)

This should be an alternative to `zod-sockets` and enable subscriptions
without websockets, without socket.io and so on. Also related to #991

### Resources

- Standard:
https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#event_stream_format
- Article: https://web.dev/articles/eventsource-basics
- stack:
https://stackoverflow.com/questions/34657222/how-to-use-server-sent-events-in-express-js
- random tutorial:
https://masteringjs.io/tutorials/express/server-sent-events


### Findings

- it turned out it's required to do `flush()` after each message:
https://stackoverflow.com/questions/40304985/server-side-events-sse-not-reaching-client-side
- it's recommended to use `webhooks` entry for describing SSE in OpenAPI
3.1 :
https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#oas-webhooks
- example: https://learn.openapis.org/examples/v3.1/webhook-example.html
- to make middlewares, I'd probably have to deal with mixins to avoid
repeating EndpointsFactory implementation
  - https://www.typescriptlang.org/docs/handbook/mixins.html

1192 of 1215 branches covered (98.11%)

4276 of 4276 relevant lines covered (100.0%)

58.42 hits per line

Source Files on job run-18.x - 12245767980.2
  • Tree
  • List 51
  • Changed 24
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 12245767980
  • fdcc2668 on github
  • Prev Job for on master (#12236502128.6)
  • Next Job for on master (#12246004675.5)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc