Spring Stomp Web套接字中的broker通道名称是否可以更改为registry.enableSimpleBroker(“ / topic”,“ / queue”)?

时间:2018-10-14 00:37:54

标签: spring-boot spring-websocket

当我在stomp和websocket上阅读springboot时,我无数次地迷失了这段代码

[ 
  %{team_score: p_score.score, team_id: p_score.team_id},
  %{team_score: p_score.score, team_id: p_score.team_id},
  %{team_score: p_score.score, team_id: p_score.team_id},
  %{team_score: p_score.score, team_id: p_score.team_id},
]

  @Override
public void configureMessageBroker(MessageBrokerRegistry registry) {
    registry.enableSimpleBroker("/topic", "/queue");
}

这让我想知道,这些通道是恒定通道还是可以更改的,如果这是恒定通道,它们各自的目的是什么?我已经读了很多文章,但这可以使我更加了解websocket。

0 个答案:

没有答案