diff --git a/AppSyncRealTimeClient/ConnectionProvider/AppsyncRealtimeConnectionAsync/RealtimeConnectionProviderAsync+Websocket.swift b/AppSyncRealTimeClient/ConnectionProvider/AppsyncRealtimeConnectionAsync/RealtimeConnectionProviderAsync+Websocket.swift index 95057f43..a565a3d6 100644 --- a/AppSyncRealTimeClient/ConnectionProvider/AppsyncRealtimeConnectionAsync/RealtimeConnectionProviderAsync+Websocket.swift +++ b/AppSyncRealTimeClient/ConnectionProvider/AppsyncRealtimeConnectionAsync/RealtimeConnectionProviderAsync+Websocket.swift @@ -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 } }