I am currently using Netty integrated WebSocket to do a chat room, I would like to ask whether Netty supports STOMP protocol, so that Netty+ WebSocket + STOMP can be done? I can't find any examples online because the combination doesn't fit the actual development, or because they're the wrong combination?
Asked
Active
Viewed 239 times
1 Answers
0
Netty provides a STOMP codec so in that sense it "supports" STOMP. However, STOMP is a messaging protocol and Netty is not a message broker. Therefore, in that sense Netty doesn't support STOMP. In order to support STOMP as a messaging protocol you'd have to implement much more than what Netty provides. See the STOMP specification for more details on that.

Justin Bertram
- 29,372
- 4
- 21
- 43
-
Thank you for taking time out of your busy schedule to answer this question. Therefore, according to what you said, if I use Netty+ WebSocket to achieve similar chatting functions, it is not recommended to use Stomp as a sub-protocol of WebSocket? – Ares' hand Aug 23 '22 at 03:27
-
I'm not recommending you do anything in particular. I'm just answering your question about integrating Netty, WebSocket, and STOMP. Whether or not it's wise/recommended to implement a STOMP message broker for your use-case is something you'll have to decide as you weigh all your specific pros and cons. – Justin Bertram Aug 23 '22 at 04:00