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

supabase / supabase-swift / 16051575138
80%

Build:
DEFAULT BRANCH: main
Ran 03 Jul 2025 01:35PM UTC
Jobs 1
Files 81
Run time 5min
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

03 Jul 2025 01:20PM UTC coverage: 75.841% (+0.2%) from 75.666%
16051575138

push

github

web-flow
feat(realtime): add presence-enabled flag to join push (#736)

* feat(realtime): add presence-enabled flag to join push

- Add presenceEnabled property to RealtimeJoinConfig
- Update CallbackManager to handle presence-enabled joins
- Modify RealtimeChannelV2 to support presence-enabled configuration
- Add tests for presence-enabled functionality
- Update .gitignore for new test artifacts

This change allows developers to explicitly enable/disable presence
functionality when joining realtime channels, providing better control
over presence behavior in realtime subscriptions.

* test(realtime): add test for presence enabled flag during subscribe

- Add comprehensive test that verifies presence.enabled is set to true when presence callback exists
- Test uses FakeWebSocket to simulate real subscription flow
- Verifies that presence enabled flag is correctly set in phx_join payload
- Ensures proper cleanup of subscriptions and connections

This test validates the core functionality where presence enabled is automatically set based on presence callback existence.

* fix(realtime): resubscribe channel when presence callback added to subscribed channel

When a presence callback is added to an already subscribed channel, the channel now automatically resubscribes to ensure the presence functionality works correctly. This fixes an issue where presence callbacks added after subscription would not receive presence updates.

- Add resubscription logic in onPresenceChange method
- Log debug message when resubscribing
- Maintain existing callback registration behavior

13 of 22 new or added lines in 3 files covered. (59.09%)

5255 of 6929 relevant lines covered (75.84%)

21.5 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
9
63.4
0.66% Sources/Realtime/RealtimeChannelV2.swift
Jobs
ID Job ID Ran Files Coverage
1 16051575138.1 03 Jul 2025 01:34PM UTC 81
75.84
GitHub Action Run
Source Files on build 16051575138
  • Tree
  • List 81
  • Changed 6
  • Source Changed 3
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16051575138
  • 7de5b8b0 on github
  • Prev Build on main (#15556137759)
  • Next Build on main (#16143484888)
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