Skip to content

channel.onPostgresChange giving compile errors #734

@sahildhull2512

Description

@sahildhull2512

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

channel.onPostgresChange() and channel.on() are giving compile errors

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

Run this code snippet

let channel = supabase.realtimeV2.channel("public:chat_messages")

channel.onPostgresChange(
  event: .insert,
  schema: "public",
  table: "chat_messages"
) { payload in
  print("received payload", payload)
}

Error:

No exact matches in call to instance method 'onPostgresChange'

Expected behavior

I expected it to compile. Same issue with channel.on() function

Screenshots

If applicable, add screenshots to help explain your problem.

System information

  • OS: macOS
  • Version of supabase-swift: 2.29.3

Additional context

NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions