Skip to content

Commit

Permalink
apply duplicate change to Async version of the file
Browse files Browse the repository at this point in the history
  • Loading branch information
lawmicha committed Nov 9, 2023
1 parent 6a6fcd1 commit 06e97e9
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ extension RealtimeConnectionProviderAsync: AppSyncWebsocketDelegate {
self.updateCallback(event: .connection(self.status))
return
}
self.updateCallback(event: .error(ConnectionProviderError.connection(nil, nil)))
#if os(watchOS)
self.updateCallback(event: .error(ConnectionProviderError.connection(
"This API uses low-level networking (websockets). Running on watchOS only works for specific circumstances.",
error)))
#else
self.updateCallback(event: .error(ConnectionProviderError.connection(nil, error)))
#endif
}
}

Expand Down

0 comments on commit 06e97e9

Please sign in to comment.