spring-framework
spring-framework copied to clipboard
Support sending large STOMP messages as fragmented frames on `WebSocketStompClient`
Closes gh-29354
Motivation
- By https://github.com/spring-projects/spring-framework/issues/16152, we already added handling of fragmented STOMP frames
receiving
byBufferingStompDecoder
like other stomp libraries (e.g. stomp-websocket.js) - But we not added handling of fragmented STOMP frames
sending
yet!- ref. stomp-websocket.js fragmented frames sending impl
Modification
- Add
SplittingStompEncoder
to split large STOMP messages that exceedsoutboundMessageSizeLimit
Result
- Now user can send large STOMP messages as fragmented frames on
WebSocketStompClient
- Close https://github.com/spring-projects/spring-framework/issues/29354
(Rebase to latest main branch to resolve conflict~!)
Seems mentioned +1 on https://github.com/spring-projects/spring-framework/issues/31901 😄