We have just switched to Apache ActiveMQ Artemis, enabling the Stomp server for Javascript WebSocket subscriptions, and everything is working fine, but we're receiving messages as "kind of" binary data.
Frames are marked as isBinaryBody: true
and I can also spot a companion binaryBody
property.
I understand that this is the default behaviour in Apache ActiveMQ Artemis, but is there any way to disable/configure this and make it work with text only messages?
Currently ActiveMQ Artemis is hard-coded to encode WebSocket frames as binary. There is no way to configure the broker to do it differently. However, I have opened ARTEMIS-4294 and sent/merged a PR for this functionality. It will be available in 2.29.0, and you can set webSocketEncoderType=text
on the stomp
acceptor
.