supabase / supabase-swift

A Swift client for Supabase
https://supabase.com/docs/reference/swift
MIT License
710 stars 107 forks source link

Swift subscribe section #526

Closed OsmanM94 closed 1 month ago

OsmanM94 commented 2 months ago

The docs state that this is an asynchronous operation, however, it is not. There is also a significant typo in the "Subscribe / Listen to a specific table" section of the official documentation.

My main concern is the asynchronous operation. Nearly all operations, from subscribing to a channel, are not supported asynchronously, despite what the documentation claims. Docs needs clear working examples

The overall working experience with Supabase was perfect, it works brilliant (Sign in with Apple, CRUD operations with db, etc), however the Subscribe section is a pain to work with. Needs some clear working examples

https://supabase.com/docs/reference/swift/subscribe

supabase listener
grdsdev commented 2 months ago

Hi @OsmanM94 realtime used to need await, as it was implemented as an actor before, now that isn't needed anymore, you can drop the await from most of the api calls.

I'll make sure to update docs accordingly.

Let me know if you have any other topic realtime related.

OsmanM94 commented 1 month ago

thank you very much. Brilliant