MessagePublicationRSocketController

@Controller
@MessageMapping(value = ["v1.message.{client}"])
class MessagePublicationRSocketController(messagePublicationService: MessagePublicationService, protobufSerializer: ProtoBuf, serverStore: ServerStore)

Constructors

Link copied to clipboard
constructor(messagePublicationService: MessagePublicationService, protobufSerializer: ProtoBuf, serverStore: ServerStore)

Functions

Link copied to clipboard
@MessageMapping(value = ["stream"])
fun publish(@Payload(required = false) inBoundMessages: Flow<ByteArray>, @DestinationVariable client: String): Flow<RSocketResponse>

Flow variant of publishSingleMessage as request/stream RSocket API.

Link copied to clipboard
@MessageMapping(value = ["put"])
suspend fun publishSingleMessage(@Payload inBoundMessage: ByteArray, @DestinationVariable client: String)

Receive MessageEntity fnf RSocket API. Takes as argument an MessageEntity encoded in ProtoBuf format in payload. In metadata takes the client path as String.