We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29da466 commit 63deed8Copy full SHA for 63deed8
src/main/kotlin/com/example/kotlin/chat/controller/MessageResource.kt
@@ -18,7 +18,7 @@ class MessageResource(val messageService: MessageService) {
18
messageService.post(inboundMessages)
19
20
@MessageMapping("stream")
21
- suspend fun send(): Flow<MessageVM> = messageService
+ fun send(): Flow<MessageVM> = messageService
22
.stream()
23
.onStart {
24
emitAll(messageService.latest())
0 commit comments