Skip to content

Commit c4b4a7d

Browse files
committed
Modified: Changed subchannel routes
1 parent 6db621b commit c4b4a7d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/io/aurora/socketapp/channel/port/SubChannelController.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@ public SubChannelController(SubChannelService subChannelService)
2222
this.subChannelService = subChannelService;
2323
}
2424

25-
@MessageMapping("/available.subChannels")
26-
@SendTo("/topic/channels")
25+
@MessageMapping("/available.subshannels")
26+
@SendTo("/topic/subchannels")
2727
public List<String> getAllChannelIds()
2828
{
2929
return subChannelService.getAllSubChannelIds();
3030
}
3131

32-
@MessageMapping("/subChannels/join")
32+
@MessageMapping("/subchannels/join")
3333
public void join(String subChannelId, Principal principal) throws IOException
3434
{
3535
subChannelService.join(subChannelService.findSubChannelById(subChannelId)
3636
,mapper.readValue(principal.getName(), User.class));
3737
}
3838

39-
@MessageMapping("/subChannels/leave")
39+
@MessageMapping("/subchannels/leave")
4040
public void leave(String subChannelId, Principal principal) throws IOException
4141
{
4242
subChannelService.leave(subChannelService.findSubChannelById(subChannelId),

0 commit comments

Comments
 (0)