You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libraries/apollo-runtime/src/commonMain/kotlin/com/apollographql/apollo/network/websocket/WebSocketNetworkTransport.kt
* Closes the websocket connection if the transport is a [WebSocketNetworkTransport].
299
+
*
300
+
* A response is emitted with [ApolloResponse.exception] set to [ApolloWebSocketForceCloseException].
301
+
*/
302
+
@ApolloExperimental
303
+
fun NetworkTransport.closeConnection() {
304
+
val webSocketNetworkTransport = (thisas?WebSocketNetworkTransport) ?:throwIllegalArgumentException("'$this' is not an instance of com.apollographql.apollo.websocket.WebSocketNetworkTransport")
0 commit comments