StompProtocolAndroid
StompProtocolAndroid copied to clipboard
use Spring boot 2.0 ,android cant send message
when i use spring boot 2.0 the webseocket server,android client cant send a message
We has been accomplish in order to connect to the Spring v2.0.5-RELEASE. And we are sending messages. But we cannot connect to the server after Spring v2.0.5
thanks
@zhanghengheng any good news on this?
I had the same problem, mostly because of #131. We had the STOMP client working with 1.5 but after 2.0 it stopped. The main reason we found was the change of the server from hikari to tomcat 9. It seems the connection will hang on tomcat websocket with no error message if the CONNECT frame doesn't have the 'accept-version' and 'host' headers. Adding it to your Connection Provider might address the problem.
EDIT: Version 1.6 have the 'accept-version' header, it may be enough
@UbivisDev is right. We have updated to the header as 'accept-version'. We can connect to the latest spring boot version (now 2.2.0.BUILD-SNAPSHOT). We can also use Java-WebSocket:jar:1.4.0 to connect the server.