Skip to content

Commit

Permalink
Update OkHttpWebSocketEngine.kt
Browse files Browse the repository at this point in the history
Renamed new exception ApolloWebSocketException to ApolloWebSocketClosedException
  • Loading branch information
dchappelle authored Jul 20, 2021
1 parent 2baf8c2 commit 84380a5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)
}

Expand Down

0 comments on commit 84380a5

Please sign in to comment.