You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 13, 2023. It is now read-only.
* Update logging for WebSockets
* Convert all logs from print()/debugPrint() to NSLog() to support
debugging on devices
* Add opt-in trace level logging of all sent and received messages
with a new property "shouldPrintWebSocketTrace" added to allow turning
the new logs on
* Add description for "shouldPrintWebSocketTrace" in README
* Fix build errors for logging updates
Copy file name to clipboardExpand all lines: Sources/ParseLiveQuery/Client.swift
+2-1
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ open class Client: NSObject {
24
24
25
25
varsocket:WebSocket?
26
26
publicvarshouldPrintWebSocketLog=true
27
+
publicvarshouldPrintWebSocketTrace=false
27
28
publicvaruserDisconnected=false
28
29
varisConnecting=false
29
30
@@ -159,7 +160,7 @@ extension Client {
159
160
if !userDisconnected {
160
161
reconnect()
161
162
}else{
162
-
debugPrint("Warning: The client was explicitly disconnected! You must explicitly call .reconnect() in order to process your subscriptions.")
163
+
NSLog("ParseLiveQuery: Warning: The client was explicitly disconnected! You must explicitly call .reconnect() in order to process your subscriptions.")
0 commit comments