Skip to content
This repository was archived by the owner on Jun 13, 2023. It is now read-only.

Commit e9eea48

Browse files
Update examples to use better path construction, and make Message query actually work. (#35)
1 parent 76bcc6c commit e9eea48

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Examples/LiveQueryDemo/Info.plist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>NSAppTransportSecurity</key>
6+
<dict>
7+
<key>NSAllowsArbitraryLoads</key>
8+
<true/>
9+
</dict>
510
<key>CFBundleDevelopmentRegion</key>
611
<string>en</string>
712
<key>CFBundleExecutable</key>

Examples/LiveQueryDemo/main.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Parse.initializeWithConfiguration(ParseClientConfiguration {
1919
$0.server = "http://localhost:1337/parse"
2020
})
2121

22-
let liveQueryClient = ParseLiveQuery.Client(server: "http://localhost:1337")
22+
let liveQueryClient = ParseLiveQuery.Client()
2323

2424
class ChatRoomManager {
2525
private var currentChatRoom: Room?
@@ -28,7 +28,7 @@ class ChatRoomManager {
2828
var connected: Bool { return currentChatRoom != nil }
2929
var messagesQuery: PFQuery {
3030
return (Message.query()?
31-
.whereKey("room_name", equalTo: currentChatRoom!.name!)
31+
.whereKey("roomName", equalTo: currentChatRoom!.name!)
3232
.orderByAscending("createdAt"))!
3333
}
3434

0 commit comments

Comments
 (0)