spring-framework / org.springframework.messaging.rsocket

Package org.springframework.messaging.rsocket

Functions

connectAndAwait

suspend fun Builder.connectAndAwait(transport: ClientTransport): RSocketRequester

Coroutines variant of RSocketRequester.Builder.connect.

connectTcpAndAwait

suspend fun Builder.connectTcpAndAwait(host: String, port: Int): RSocketRequester

Coroutines variant of RSocketRequester.Builder.connectTcp.

connectWebSocketAndAwait

suspend fun Builder.connectWebSocketAndAwait(uri: URI): RSocketRequester

Coroutines variant of RSocketRequester.Builder.connectWebSocket.

dataFlow

fun <T : Any> RequestSpec.dataFlow(data: Flow<T>): ResponseSpec

Kotlin Flow variant of RSocketRequester.RequestSpec.data.

retrieveAndAwait

suspend fun <T : Any> ResponseSpec.retrieveAndAwait(): T

Coroutines variant of RSocketRequester.ResponseSpec.retrieveMono.

retrieveFlow

fun <T : Any> ResponseSpec.retrieveFlow(batchSize: Int = 1): Flow<T>

Coroutines variant of RSocketRequester.ResponseSpec.retrieveFlux.

sendAndAwait

suspend fun ResponseSpec.sendAndAwait(): Unit

Coroutines variant of RSocketRequester.ResponseSpec.send.