Skip to content

Commit

Permalink
Make SpringWebSocketClientAdapter private
Browse files Browse the repository at this point in the history
Resolves:
#454
  • Loading branch information
joffrey-bion committed Feb 18, 2024
1 parent 75358db commit d166288
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
18 changes: 0 additions & 18 deletions krossbow-websocket-spring/api/krossbow-websocket-spring.api
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
public final class org/hildan/krossbow/websocket/spring/SpringDefaultWebSocketClient : org/hildan/krossbow/websocket/spring/SpringWebSocketClientAdapter {
public static final field INSTANCE Lorg/hildan/krossbow/websocket/spring/SpringDefaultWebSocketClient;
}

public final class org/hildan/krossbow/websocket/spring/SpringJettyWebSocketClient : org/hildan/krossbow/websocket/spring/SpringWebSocketClientAdapter {
public static final field INSTANCE Lorg/hildan/krossbow/websocket/spring/SpringJettyWebSocketClient;
}

public final class org/hildan/krossbow/websocket/spring/SpringSockJSWebSocketClient : org/hildan/krossbow/websocket/spring/SpringWebSocketClientAdapter {
public static final field INSTANCE Lorg/hildan/krossbow/websocket/spring/SpringSockJSWebSocketClient;
}

public class org/hildan/krossbow/websocket/spring/SpringWebSocketClientAdapter : org/hildan/krossbow/websocket/WebSocketClient {
public fun <init> (Lorg/springframework/web/socket/client/WebSocketClient;)V
public fun connect (Ljava/lang/String;Ljava/util/Map;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public synthetic fun connect (Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
}

public final class org/hildan/krossbow/websocket/spring/SpringWebSocketClientKt {
public static final fun asKrossbowWebSocketClient (Lorg/springframework/web/socket/client/WebSocketClient;)Lorg/hildan/krossbow/websocket/WebSocketClient;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,9 @@ import org.springframework.web.socket.client.WebSocketClient as SpringWebSocketC
* Adapts this Spring [WebSocketClient][SpringWebSocketClient] to the Krossbow
* [WebSocketClient][KrossbowWebSocketClient] interface.
*/
@Suppress("DEPRECATION")
fun SpringWebSocketClient.asKrossbowWebSocketClient(): KrossbowWebSocketClient = SpringWebSocketClientAdapter(this)

@Deprecated(
message = "This class is internal and will become invisible in future versions, " +
"prefer the adapter extension asKrossbowWebSocketClient().",
)
open class SpringWebSocketClientAdapter(private val client: SpringWebSocketClient) : KrossbowWebSocketClient {
private class SpringWebSocketClientAdapter(private val client: SpringWebSocketClient) : KrossbowWebSocketClient {

override suspend fun connect(url: String, headers: Map<String, String>): WebSocketConnectionWithPingPong {
try {
Expand Down

0 comments on commit d166288

Please sign in to comment.