.forEach(result -> log.info("{}", result));
Thread.sleep(10000);
- receiveMessage(chatRoom).subscribe(message -> log.info("message: {}", message));
+ receiveMessages(chatRoom).subscribe(message -> log.info("message: {}", message));
Thread.sleep(1000000);
}
});
}
- Flux<byte[]> receiveMessage(ChatRoomInfoTo chatRoom)
+ Flux<byte[]> receiveMessages(ChatRoomInfoTo chatRoom)
{
return webClient
.get()
.uri(
- "/{chatRoomId}",
+ "/{chatRoomId}/listen",
chatRoom.getId())
.accept(MediaType.APPLICATION_OCTET_STREAM)
.retrieve()