StompProtocolAndroid icon indicating copy to clipboard operation
StompProtocolAndroid copied to clipboard

use Spring boot 2.0 ,android cant send message

Open zhanghengheng opened this issue 6 years ago • 5 comments

when i use spring boot 2.0 the webseocket server,android client cant send a message

zhanghengheng avatar Dec 21 '18 03:12 zhanghengheng

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

pointphoton avatar Dec 24 '18 06:12 pointphoton

thanks

zhanghengheng avatar Dec 24 '18 07:12 zhanghengheng

@zhanghengheng any good news on this?

ahmetcj4 avatar Jan 05 '19 18:01 ahmetcj4

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 avatar Jan 09 '19 13:01 UbivisDev

@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.

pointphoton avatar Apr 10 '19 07:04 pointphoton