Skip to content

Subscribe to new updates #49

Description

@jaydipdeveloper

I have a project in that we have page called community when all user can post so I need to subscribe to get updates

let userFeed = Client.shared.flatFeed(feedSlug: "community", userId: community_id_here)

userFeed.subscribe(typeOf: GetStreamActivity.self, subscription: { result in
switch result {
case .success(let activities):
// Handle received activities
print("Received activities: (activities)")
case .failure(let error):
// Handle subscription error
print("Failed to subscribe: (error)")
}
})

        This never print  Received activities or Failed to subscribe
        
        Please help me

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions