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

supabase / supabase-swift / 45672549565
96%

Build:
DEFAULT BRANCH: main
Ran 25 Nov 2026 06:26PM UTC
Jobs 1
Files 225
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

25 Nov 2026 06:11PM UTC coverage: 96.183% (+0.01%) from 96.171%
45672549565

push

github

web-flow
feat(realtime)!: store broadcast messages with persist (#1890)

* feat(realtime): store broadcast messages with persist

Add BroadcastPersistence and a persist parameter to broadcast and
httpSend, per the realtime.channel.broadcast_persist spec.

- WebSocket: persist goes in the user broadcast frame metadata,
  {"persist":true} or {"persist":{"ttl":N}}, never in the payload.
- HTTP: persist=true or persist[ttl]=N in the query string.
- The ttl is sent as whole seconds and not range-checked.
- With acknowledgesMessages, error replies persistence_unauthorized,
  persistence_failed and persistence_invalid_ttl map to RealtimeError
  kind .server with the matching new RealtimeError.Code.
- persist on a non-private channel throws .invalidRequest and sends
  nothing.

Request settings now come before encoder:
broadcast(event:payload:persist:encoder:) and
httpSend(event:payload:persist:timeout:encoder:).

Declare realtime.channel.broadcast_persist implemented in
sdk-compliance.yaml.

* test(realtime): rename identifiers the spell check rejects

* test(realtime): bound the broadcast acknowledgement waits on the wall clock

* test(realtime): cancel the broadcast task when an acknowledgement test exits early

* refactor(realtime): simplify broadcast persistence checks and tests

* fix(realtime): round persist ttl up and keep join reply reasons

- Round a fractional ttl up to whole seconds, so a sub-second ttl
  is not sent as 0.
- Read response.error only for push replies; join replies keep
  their reasons.
- Keep the configured URL's query items in httpSend's URL.
- Document the Realtime server versions persist needs and the
  httpSend ttl error.

* fix(realtime): saturate the rounded persist ttl instead of trapping on overflow

79 of 79 new or added lines in 11 files covered. (100.0%)

16604 of 17263 relevant lines covered (96.18%)

598474.69 hits per line

Jobs
ID Job ID Ran Files Coverage
1 45672549565.1 25 Nov 2026 06:26PM UTC 225
96.18
GitHub Action Run
Source Files on build 45672549565
  • Tree
  • List 225
  • Changed 11
  • Source Changed 11
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45672549565
  • c1a238c8 on github
  • Prev Build on main (#45671919245)
  • Next Build on main (#45673996638)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc