Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rsocket-ktor/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ kotlin {
sourceSets {
commonMain.dependencies {
api(projects.rsocketCore)
api(projects.rsocketTransportKtorWebsocket)
api(projects.rsocketTransportKtorWebsocketInternal)
//TODO ContentNegotiation will be here later
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import io.ktor.client.request.*
import io.ktor.http.*
import io.rsocket.kotlin.*
import io.rsocket.kotlin.transport.*
import io.rsocket.kotlin.transport.ktor.websocket.*
import io.rsocket.kotlin.transport.ktor.websocket.internal.*
import kotlin.coroutines.*

public suspend fun HttpClient.rSocket(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import io.ktor.server.routing.*
import io.ktor.server.websocket.*
import io.rsocket.kotlin.*
import io.rsocket.kotlin.transport.*
import io.rsocket.kotlin.transport.ktor.websocket.*
import io.rsocket.kotlin.transport.ktor.websocket.internal.*
import kotlinx.coroutines.*

public fun Route.rSocket(
Expand Down
Empty file.
35 changes: 0 additions & 35 deletions rsocket-transport-ktor/build.gradle.kts

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ kotlin {
sourceSets {
commonMain.dependencies {
implementation(projects.rsocketInternalIo)

api(projects.rsocketTransportKtor)
api(projects.rsocketCore)
api(libs.ktor.network)
}
commonTest.dependencies {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015-2022 the original author or authors.
* Copyright 2015-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015-2022 the original author or authors.
* Copyright 2015-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ kotlin {

sourceSets {
commonMain.dependencies {
api(projects.rsocketTransportKtorWebsocket)
implementation(projects.rsocketTransportKtorWebsocketInternal)
api(projects.rsocketCore)
api(libs.ktor.client.core)
api(libs.ktor.client.websockets)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import io.ktor.client.request.*
import io.ktor.http.*
import io.rsocket.kotlin.*
import io.rsocket.kotlin.transport.*
import io.rsocket.kotlin.transport.ktor.websocket.*
import io.rsocket.kotlin.transport.ktor.websocket.internal.*
import kotlinx.coroutines.*
import kotlin.coroutines.*

Expand All @@ -37,7 +37,7 @@ public fun <T : HttpClientEngineConfig> WebSocketClientTransport(
context: CoroutineContext = EmptyCoroutineContext,
engine: T.() -> Unit = {},
webSockets: WebSockets.Config.() -> Unit = {},
request: HttpRequestBuilder.() -> Unit
request: HttpRequestBuilder.() -> Unit,
): ClientTransport {
val clientEngine = engineFactory.create(engine)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015-2023 the original author or authors.
* Copyright 2015-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
public final class io/rsocket/kotlin/transport/ktor/websocket/WebSocketConnection : io/rsocket/kotlin/Connection, kotlinx/coroutines/CoroutineScope {
public final class io/rsocket/kotlin/transport/ktor/websocket/internal/WebSocketConnection : io/rsocket/kotlin/Connection, kotlinx/coroutines/CoroutineScope {
public fun <init> (Lio/ktor/websocket/WebSocketSession;)V
public fun getCoroutineContext ()Lkotlin/coroutines/CoroutineContext;
public fun receive (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ kotlin {

sourceSets {
commonMain.dependencies {
api(projects.rsocketTransportKtor)
implementation(projects.rsocketInternalIo)
api(projects.rsocketCore)
api(libs.ktor.websockets)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.rsocket.kotlin.transport.ktor.websocket
package io.rsocket.kotlin.transport.ktor.websocket.internal

import io.ktor.utils.io.core.*
import io.ktor.websocket.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ kotlin {

sourceSets {
commonMain.dependencies {
api(projects.rsocketTransportKtorWebsocket)
implementation(projects.rsocketTransportKtorWebsocketInternal)
api(projects.rsocketCore)
api(libs.ktor.server.host.common)
api(libs.ktor.server.websockets)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import io.ktor.server.routing.*
import io.ktor.server.websocket.*
import io.rsocket.kotlin.*
import io.rsocket.kotlin.transport.*
import io.rsocket.kotlin.transport.ktor.websocket.*
import io.rsocket.kotlin.transport.ktor.websocket.internal.*

//TODO: will be reworked later with transport API rework

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015-2022 the original author or authors.
* Copyright 2015-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015-2022 the original author or authors.
* Copyright 2015-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015-2023 the original author or authors.
* Copyright 2015-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015-2022 the original author or authors.
* Copyright 2015-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015-2022 the original author or authors.
* Copyright 2015-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
21 changes: 11 additions & 10 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,19 @@ plugins {
projects("rsocket-kotlin") {
module("rsocket-internal-io")
module("rsocket-core")
module("rsocket-test")

module("rsocket-test")
module("rsocket-transport-tests")
module("rsocket-transport-local")
module("rsocket-transport-nodejs-tcp")

//ktor transport modules
module("rsocket-transport-ktor", prefix = null) {
module("rsocket-transport-ktor-tcp")
module("rsocket-transport-ktor-websocket")
module("rsocket-transport-ktor-websocket-client")
module("rsocket-transport-ktor-websocket-server")

// transports
folder("rsocket-transports", "rsocket-transport") {
module("local")
module("nodejs-tcp")

module("ktor-tcp")
module("ktor-websocket-internal")
module("ktor-websocket-client")
module("ktor-websocket-server")
}

//deep ktor integration module
Expand Down