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

supabase / supabase-swift / 44118736313
96%

Build:
DEFAULT BRANCH: main
Ran 17 Nov 2026 03:58PM UTC
Jobs 1
Files 223
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

17 Nov 2026 03:49PM UTC coverage: 96.147% (+0.03%) from 96.118%
44118736313

push

github

web-flow
feat(realtime): add typed broadcast events (#1845)

* feat(realtime): add typed broadcast events

Add a `BroadcastEvent` protocol that ties a payload type to its event
name. `RealtimeChannel.broadcasts(of:bufferingPolicy:decoder:)` returns a
stream of `TypedBroadcastMessage` values for that event, and
`broadcast(_:encoder:)` sends a value under its type's event name.

`TypedBroadcastMessage.payload()` decodes lazily and throws, so a payload
that does not decode does not end the stream. The raw message stays
available through `raw`.

* refactor(realtime): share one lazy wrapper between the typed streams

The typed Postgres changes stream and the typed broadcast stream each had
a private AsyncSequence that wrapped raw elements. Replace both with one
generic LazilyDecodedSequence, and add a test helper for the repeated
setup in the typed broadcast tests.

* test(realtime): cover binary payloads and custom coders for typed broadcasts

Add tests for a binary JSON payload on the typed stream, a custom decoder,
and a custom encoder on broadcast(_:encoder:). Document that a
BroadcastEvent must not use "*" as its event name, since that matches
every broadcast on the channel.

* feat(realtime): report an issue for a typed broadcast with a "*" event

A BroadcastEvent whose event is "*" matches every broadcast on the
channel, so its typed stream gets messages that do not decode. Report an
issue when broadcasts(of:) or broadcast(_:encoder:) sees that name, then
keep the string-keyed behavior.

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

16368 of 17024 relevant lines covered (96.15%)

665148.57 hits per line

Jobs
ID Job ID Ran Files Coverage
1 44118736313.1 17 Nov 2026 03:58PM UTC 223
96.15
GitHub Action Run
Source Files on build 44118736313
  • Tree
  • List 223
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #44118736313
  • 029cedb0 on github
  • Prev Build on main (#44089806627)
  • Next Build on main (#44121915248)
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