Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

parity(realtime): add copyBindings() method to RealtimeChannel [from supabase-js]

Abierto
#241 0 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@Tr00d ya está trabajando en esto.

Desde el 1/7/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

parity

[!WARNING]
Auto-generated by AI — This issue was automatically created by an AI-based SDK parity analysis tool. It may not be applicable to this SDK or may already be implemented in a different form. Please use your best judgment before accepting or closing this issue.

SDK Parity: C# implementation needed

A change was made in supabase-js that needs to be implemented in this repository for SDK parity.

Reference Implementation (supabase-js)

What Changed

New CopyBindings(other: RealtimeChannel) method on RealtimeChannel that copies all event bindings (subscriptions/callbacks) from another channel instance. Useful for reconnection scenarios.

Code Reference
copyBindings(other: RealtimeChannel) {
  if (this.joinedOnce) {
    throw new Error('cannot copy bindings into joined channel')
  }
  for (const kind in other.bindings) {
    for (const binding of other.bindings[kind]) {
      this._on(binding.type, binding.filter, binding.callback)
    }
  }
}

Implementation Guidance

Expected API Surface (C#)
public void CopyBindings(IRealtimeChannel other)
{
    // Throws InvalidOperationException if this channel already joined
    // Copies all postgres_changes, broadcast, presence bindings from other
}
Key Behaviors to Match
  • Throws InvalidOperationException (or similar) if channel has already joined
  • Copies all binding types: postgres_changes, broadcast, presence
  • Copies filter and callback for each binding
  • Source channel (other) is not modified

Acceptance Criteria

  • CopyBindings() method added to RealtimeChannel
  • Throws if channel already subscribed/joined
  • All binding types (postgres_changes, broadcast, presence) are copied
  • Source channel unaffected after copy
  • Unit tests for happy path and error case

Context

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

Generated with Claude Code /sync-sdk-parity

Lenguaje dominante
C#
Estrellas
700
Forks
105
Merge medio
1 d 21 h
PR fusionados (30 d)
41

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de supabase/supabase-csharp

Todos los issues de supabase/supabase-csharp

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.