Skip to content

Commit

Permalink
ChatController
Browse files Browse the repository at this point in the history
  • Loading branch information
Lev committed Sep 15, 2024
1 parent a37bdf7 commit c611214
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public ChatController(SimpMessagingTemplate messagingTemplate) {
this.messagingTemplate = messagingTemplate;
}

@MessageMapping("/topic/public/{topicId}")
@MessageMapping("/app/topic/public/{topicId}")
public void sendMessage(@DestinationVariable String topicId, MessageResponseDto message) {

messagingTemplate.convertAndSend("/topic/public/" + topicId, message);
Expand Down

0 comments on commit c611214

Please sign in to comment.