首页 > 解决方案 > ActiveMQ Artemis - 踩在 websocket 上 - 框架类型

问题描述

我将 Apache ActiveMQ Artemis 2.9.0 与 STOMP over Websocket 连接器一起使用。

当我查看收到的帧时,我的客户端(Chrome 浏览器)将它们视为二进制帧,即使在CONNECT帧期间也是如此:

websocket 二进制框架

Apache ActiveMQ 5.X 没有这种行为(框架被视为文本)。我相信它是由 Websocket 协议https://www.rfc-editor.org/rfc/rfc6455#page-65的操作码决定的

这是 Apache ActiveMQ Artemis 的预期行为吗?

标签: websocketactivemq-artemis

解决方案


Yes. This is the expected behavior from Apache ActiveMQ Artemis. It uses Netty for web socket support, and for web socket frames specifically it uses io.netty.handler.codec.http.websocketx.BinaryWebSocketFrame


推荐阅读