stomp - Does Spring @SubscribeMapping really subscribe the client to some topic? -
i using spring websocket stomp, simple message broker. in @controller use method-level @subscribemapping , should subscribe client topic client receive messages of topic afterwards. let say, client subscribes topic "chat" : stompclient.subscribe('/app/chat', ...); as client subscribed "/app/chat ", instead of "/topic/chat" , subscription go method mapped using @subscribemapping : @subscribemapping("/chat") public list getchatinit() { return chat.getusers(); } here spring ref. says: by default return value @subscribemapping method sent message directly connected client , not pass through broker. useful implementing request-reply message interactions; example, fetch application data when application ui being initialized. okay, want, partially !! sending init-data after subscribing, well. subscribing ? seems me thing happened here request-reply , service. subscription consumed. please clarify me if case. d...