|
|
|
@ -21,6 +21,10 @@ struct DebugSettingsView: View { |
|
|
|
LabeledContent("Has Websocket Manager", value: self._hasWebSocketManager) |
|
|
|
LabeledContent("Has Websocket Manager", value: self._hasWebSocketManager) |
|
|
|
LabeledContent("Websocket ping", value: self._wsPingStatus) |
|
|
|
LabeledContent("Websocket ping", value: self._wsPingStatus) |
|
|
|
LabeledContent("Websocket failure", value: self._wsFailure) |
|
|
|
LabeledContent("Websocket failure", value: self._wsFailure) |
|
|
|
|
|
|
|
if let error = self._wsError { |
|
|
|
|
|
|
|
LabeledContent("Websocket error", value: error) |
|
|
|
|
|
|
|
LabeledContent("Reconnect attempts", value: StoreCenter.main.websocketReconnectAttempts.formatted()) |
|
|
|
|
|
|
|
} |
|
|
|
LabeledContent("Last synced object date", value: self._lastSyncDate) |
|
|
|
LabeledContent("Last synced object date", value: self._lastSyncDate) |
|
|
|
if isSynchronizing { |
|
|
|
if isSynchronizing { |
|
|
|
HStack { |
|
|
|
HStack { |
|
|
|
@ -94,6 +98,12 @@ struct DebugSettingsView: View { |
|
|
|
fileprivate var _wsFailure: String { |
|
|
|
fileprivate var _wsFailure: String { |
|
|
|
return "\(StoreCenter.main.websocketFailure)" |
|
|
|
return "\(StoreCenter.main.websocketFailure)" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
fileprivate var _wsError: String? { |
|
|
|
|
|
|
|
if let error = StoreCenter.main.websocketError { |
|
|
|
|
|
|
|
return error.localizedDescription |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return nil |
|
|
|
|
|
|
|
} |
|
|
|
fileprivate var _hasWebSocketManager: String { |
|
|
|
fileprivate var _hasWebSocketManager: String { |
|
|
|
return "\(StoreCenter.main.hasWebSocketManager)" |
|
|
|
return "\(StoreCenter.main.hasWebSocketManager)" |
|
|
|
} |
|
|
|
} |
|
|
|
|