parse-community / ParseLiveQuery-iOS-OSX

Parse LiveQuery Client for iOS/OS X.
https://parseplatform.org
Other
192 stars 133 forks source link

ParseLiveQuery: Received ping but we don't handle it... #257

Closed rkumawatencoresky closed 3 years ago

rkumawatencoresky commented 3 years ago

        let query_0 = PFQuery.init(className: "ClassA")
        query_0.whereKey("sender", equalTo: PFUser.current() as Any)
        let query_1 = PFQuery.init(className: "ClassA")
        query_1.whereKey("receiver", equalTo: PFUser.current() as Any)
        let query = PFQuery.orQuery(withSubqueries: [query_0, query_1])

        let subscription: Subscription<PFObject> = Client.shared.subscribe(query)
        Client.shared.shouldPrintWebSocketTrace = true

        subscription.handleEvent { query, event in
            // Handle event
            print("query :", query)
            print("event :", event)
        }

Above code return continually ParseLiveQuery: Received ping but we don't handle it... How to fix this issue?

parse-github-assistant[bot] commented 3 years ago

Thanks for opening this issue!