Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

realtime doesn't seem to work with with xcframeworks. #10

Closed
wweevv-johndpope opened this issue Sep 5, 2022 · 1 comment
Closed

realtime doesn't seem to work with with xcframeworks. #10

wweevv-johndpope opened this issue Sep 5, 2022 · 1 comment

Comments

@wweevv-johndpope
Copy link

wweevv-johndpope commented Sep 5, 2022

not sure if it's a side effect of CLib change from swift-nio

sample app here
https://github.com/wweevv-johndpope/DemoBazel/tree/gotrue-swift

table is simple structure

    struct TestClass: Codable {
        var id: Int?
    }

Screen Shot 2022-09-06 at 6 54 51 am

I'm definitely on the right instance.
pqxcxltwoifmxcmhghzf

client connects successfully - I attempt to move subscription into the onOpen block - but no joy.

   let rt = RealtimeClient(endPoint: "https://pqxcxltwoifmxcmhghzf.supabase.co/realtime/v1", params: ["apikey": supabaseKey])
        rt.connect()
        rt.onOpen {
           
            let allUsersUpdateChanges =  rt.channel(.all)//rt.channel(.table("test", schema: "public"))
            allUsersUpdateChanges.on(.all) { message in
                print(message)
            }
            allUsersUpdateChanges.subscribe()
        }
        self.realtimeClient = rt
@wweevv-johndpope
Copy link
Author

Screen Shot 2022-09-08 at 3 27 13 pm

my bad - need to update readme to enable realtime updates for table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant