Skip to content
Advertisement

Spring Websocket STOMP: send RECEIPT frames

I have a Websocket-stomp server based on Spring and its SimpleBroker implementation (not utilizing an external broker).

I would like to enable STOMP RECEIPT messages.

How I could configure my code to send these automatically?

Advertisement

Answer

In Spring Integration test for the STOMP protocol we have this code:

JavaScript

https://github.com/spring-projects/spring-integration/blob/master/spring-integration-stomp/src/test/java/org/springframework/integration/stomp/inbound/StompInboundChannelAdapterWebSocketIntegrationTests.java

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement