Skip to content

Commit

Permalink
Merge pull request #49 from lotteon2/develop
Browse files Browse the repository at this point in the history
[FIX] start 펍섭 수정
  • Loading branch information
ssjy4974 authored Jan 21, 2024
2 parents 22d2daf + c47215f commit 994d76e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,14 @@ public Mono<Void> subscribeStartTrigger() {
.listenTo(new PatternTopic(START_TOPIC))
.map(ReactiveSubscription.Message::getMessage)
.flatMap(payload -> objectStringConverter.stringToObject(payload, ChatPayload.class))
.handle(
(chatPayload, sink) -> {
.flatMap(
chatPayload -> {
Object data = chatPayload.getData();
if (data instanceof String) {
scheduler.startJob((String) data);
sink.next(data);
}
return chatWebSocketHandler.sendMessage(
chatPayload); // send message and return its Mono
})
.then();
}
Expand Down

0 comments on commit 994d76e

Please sign in to comment.