Open UbivisDev opened 5 years ago
you need change the source code:
in ua.naiksoftware.stomp.StompHeader
class
public static final String VERSION = "version";
which should be:
public static final String VERSION = "accept-version";
I'm aware of the requirements for it to work. My question is, why is it not standard for the library, as it says it complies with the 1.1 definition? Is there a reason or not? Because if there isn't, I would advocate to include those headers. The 'version' headers isn't even meant to be used by the client as payload in sent messages, it is reserved for the server, unless I'm missing something.
Yes, you are right. This is my innatention.
Stop, StompHeader.VERSION contains "accept-version" string.
Is there a reason for not implementing the headers 'accept-version' and 'host' as default for the CONNECT frame in StompClient class? Those are required by the protocol as stated here, as the following: