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

RobinTail / express-zod-api / 12245767980
100%

Build:
DEFAULT BRANCH: master
Ran 09 Dec 2024 10:52PM UTC
Jobs 6
Files 51
Run time 1min
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

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

1200 of 1222 branches covered (98.2%)

84 of 84 new or added lines in 3 files covered. (100.0%)

4276 of 4276 relevant lines covered (100.0%)

350.28 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-22.0.0 - 12245767980.1 09 Dec 2024 10:52PM UTC 51
100.0
GitHub Action Run
2 run-18.x - 12245767980.2 09 Dec 2024 10:52PM UTC 51
100.0
GitHub Action Run
3 run-20.x - 12245767980.3 09 Dec 2024 10:52PM UTC 51
100.0
GitHub Action Run
4 run-18.18.0 - 12245767980.4 09 Dec 2024 10:52PM UTC 51
100.0
GitHub Action Run
5 run-20.9.0 - 12245767980.5 09 Dec 2024 10:52PM UTC 51
100.0
GitHub Action Run
6 run-22.x - 12245767980.6 09 Dec 2024 10:52PM UTC 51
100.0
GitHub Action Run
Source Files on build 12245767980
  • 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 Repo
  • Github Actions Build #12245767980
  • fdcc2668 on github
  • Prev Build on master (#12236502128)
  • Next Build on master (#12246004675)
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