parity(supabase): propagate custom HttpClient to realtime client [from supabase-js]

Open
#247 0 comments 0 reactions 1 assignee View on GitHub

@Tr00d is already working on this.

Since Jul 1, 2026.

Assessment

This issue has not been assessed yet.

Description

parity

SDK Parity: C# implementation needed

A bug fix was made in supabase-js that needs to be applied in this repository for SDK parity.

Reference Implementation (supabase-js)

What Changed

Custom fetch/HTTP client provided in SupabaseClient options was not being passed to the RealtimeClient.

Current State in supabase-csharp

SupabaseOptions has a Headers dictionary that is propagated to Realtime (since v1.1.1), but there is no HttpClient field. The Realtime ClientOptions also has no HttpClient property. A user who wants to use a custom HttpClient (for proxy, certificate pinning, custom handlers) cannot pass it to the Realtime client.

Implementation Guidance

Expected Fix

Add an HttpClient or HttpClientHandler property to SupabaseOptions and forward it to all sub-clients including Realtime. This ensures consistent HTTP behavior across all modules.

Key Behaviors to Match
  • Custom HttpClient set on SupabaseClient available to Realtime
  • Consistent with how other sub-clients handle HTTP configuration

Acceptance Criteria

  • HttpClient propagation mechanism added
  • Realtime client uses the shared HttpClient
  • Unit test verifying propagation
  • No breaking changes

Context

  • supabase-js version: v2.104.0+
  • Parity tracking: This issue was auto-generated by SDK parity analysis

Generated with Claude Code /sync-sdk-parity

Dominant language
C#
Stars
701
Forks
106
Avg merge
16h 35m
Merged PRs (30d)
45

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from supabase/supabase-csharp

All issues in supabase/supabase-csharp

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.