From 84380a52c76435d8af36c1e4d0e9952b0a248e66 Mon Sep 17 00:00:00 2001 From: dchappelle Date: Tue, 20 Jul 2021 16:20:33 -0400 Subject: [PATCH] Update OkHttpWebSocketEngine.kt Renamed new exception ApolloWebSocketException to ApolloWebSocketClosedException --- .../apollographql/apollo3/network/ws/OkHttpWebSocketEngine.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apollo-runtime/src/jvmMain/kotlin/com/apollographql/apollo3/network/ws/OkHttpWebSocketEngine.kt b/apollo-runtime/src/jvmMain/kotlin/com/apollographql/apollo3/network/ws/OkHttpWebSocketEngine.kt index e4c28cb50a9..4268623c43b 100644 --- a/apollo-runtime/src/jvmMain/kotlin/com/apollographql/apollo3/network/ws/OkHttpWebSocketEngine.kt +++ b/apollo-runtime/src/jvmMain/kotlin/com/apollographql/apollo3/network/ws/OkHttpWebSocketEngine.kt @@ -1,6 +1,6 @@ package com.apollographql.apollo3.network.ws -import com.apollographql.apollo3.exception.ApolloWebSocketException +import com.apollographql.apollo3.exception.ApolloWebSocketClosedException import kotlinx.coroutines.CompletableDeferred import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.channels.Channel @@ -67,7 +67,7 @@ actual class DefaultWebSocketEngine( override fun onClosing(webSocket: WebSocket?, code: Int, reason: String?) { webSocketOpenResult.complete(Unit) - val t = ApolloWebSocketException(code, reason) + val t = ApolloWebSocketClosedException(code, reason) messageChannel.close(t) }