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

supabase / supabase-swift / 18411866812
80%

Build:
DEFAULT BRANCH: main
Ran 10 Oct 2025 04:27PM UTC
Jobs 1
Files 86
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

10 Oct 2025 04:03PM UTC coverage: 77.416% (+0.1%) from 77.292%
18411866812

push

github

web-flow
feat(realtime): add explicit REST API broadcast method (#818)

* fix(realtime): add explicit REST API broadcast method

This commit ports the feature from supabase-js PR #1749 which adds
an explicit `postSend()` method for sending broadcast messages via
REST API, addressing the issue where users may unknowingly use REST
fallback when WebSocket is not connected.

Changes:
- Add `postSend()` method to RealtimeChannelV2 for explicit REST delivery
- Add deprecation warning to `broadcast()` when falling back to REST
- Add comprehensive test coverage for the new method
- Support custom timeout parameter for REST requests
- Include proper error handling and status code validation

The `postSend()` method always uses the REST API endpoint regardless
of WebSocket connection state, making it clear to developers when
they are using REST vs WebSocket delivery.

Ref: https://github.com/supabase/supabase-js/pull/1749

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* refactor: rename postSend to httpSend

Rename the explicit REST API broadcast method from postSend to
httpSend to better align with naming conventions.

Changes:
- Rename postSend() to httpSend() in RealtimeChannelV2
- Update all test names from testPostSend to testHttpSend
- Update deprecation warning to reference httpSend()
- Update error messages to reference httpSend()

All tests continue to pass.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* drop MainActor

* simplify try/catch

* reuse BroadcastMessagePayload

---------

Co-authored-by: Claude <noreply@anthropic.com>

56 of 61 new or added lines in 1 file covered. (91.8%)

5920 of 7647 relevant lines covered (77.42%)

25.09 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
69.87
2.35% Sources/Realtime/RealtimeChannelV2.swift
Jobs
ID Job ID Ran Files Coverage
1 18411866812.1 10 Oct 2025 04:27PM UTC 86
77.42
GitHub Action Run
Source Files on build 18411866812
  • Tree
  • List 86
  • Changed 3
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18411866812
  • bc0d7790 on github
  • Prev Build on main (#18320538177)
  • Next Build on main (#18462418370)
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