let client = SupabaseClient(
supabaseURL: URL(string: "https://<ref>.supabase.co")!,
supabaseKey: anonKey,
options: SupabaseClientOptions(
global: .init(session: customURLSession, logger: logger)
)
)
// Single channel, Postgres Changes
let ch = client.realtimeV2.channel("household-\(id)")
let rooms = ch.postgresChange(AnyAction.self, schema: "public", table: "rooms", filter: "household_id=eq.\(id)")
try await ch.subscribe() // fails here
let client = SupabaseClient(
supabaseURL: URL(string: "https://<ref>.supabase.co")!,
supabaseKey: anonKey,
options: SupabaseClientOptions(
global: .init(session: customURLSession, logger: logger)
)
)
// Single channel, Postgres Changes
let ch = client.realtimeV2.channel("household-\(id)")
let rooms = ch.postgresChange(AnyAction.self, schema: "public", table: "rooms", filter: "household_id=eq.\(id)")
try await ch.subscribe() // fails here