当我在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。