0

I'm trying out the LiveQuery SDK and I want to know, if it's possible to subscribe to create and update events, in one subscription...

Sotiris Kaniras
  • 520
  • 1
  • 12
  • 30

1 Answers1

0

Found it! That's how you subscribe to all events:

subscription = liveQueryClient.subscribe(chatRoomQuery) _ = subscription?.handleEvent { query, event in print(query) print(event) }

Sotiris Kaniras
  • 520
  • 1
  • 12
  • 30