Skip to content

Allow sending of binary WebSocket messages in StompSubProtocolHandler [SPR-12475] #17081

@spring-projects-issues

Description

@spring-projects-issues

Adam Granger opened SPR-12475 and commented

The changes made on #16907
(4a29e16#diff-7bc1370febf168db39f9b3a608f68fe8) only adds support for receiving websocket messages from a client.

I would like to see support for binary messages from server to client - the method handleMessageToClient(...). Currently this only supports the one case, TextMessage

byte[] bytes = this.stompEncoder.encode(stompAccessor.getMessageHeaders(), (byte[]) message.getPayload());
session.sendMessage(new TextMessage(bytes));


Affects: 4.1.2

Reference URL: http://stackoverflow.com/questions/26213819/is-it-possible-to-send-binary-data-with-stomp-over-websockets-using-spring-webso

Issue Links:

Referenced from: commits 670974d, 51367de

1 votes, 7 watchers

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions