Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No enum constant org.springframework.messaging.simp.stomp.StompCommand. #37

Open
mrharel opened this issue May 21, 2018 · 2 comments
Open

Comments

@mrharel
Copy link

mrharel commented May 21, 2018

We are using stomp-websocket with spring on the server (RabbitMQ) in a react-native project.
Everything was working on ios but on android it was not connecting. We found this related issue with this suggestion to be implemented on the backend: facebook/react-native#12731 (comment)

After this suggested patch, it was connected on android but then we started to get this messages both on ios and android:

>>> CONNECT
login:
passcode:
accept-version:1.2,1.1,1.0
heart-beat:10000,10000

<<< CONNECTED
server:RabbitMQ/3.7.4
session:session-lxopMotP6ERQq_z-is_ksw
heart-beat:10000,10000
version:1.2

connected to server RabbitMQ/3.7.4
send PING every 10000ms
check PONG every 10000ms
>>> SUBSCRIBE
id:sub-0
destination:/user/queue/messages

<<< PONG
>>> PING
<<< PONG
 >>> PING
 <<< PONG
 <<< ERROR
message:No enum constant org.springframework.messaging.simp.stomp.StompCommand.�
content-length:0

Unhandled frame: 
content-length:84

RROR
message:No enum constant org.springframework.messaging.simp.stomp.StompCommand.
Unhandled frame: content-length:0

any idea what could it be?

@kum-deepak
Copy link
Member

I can confirm that strings with NULL must work in order for STOMP to work (https://stomp.github.io/stomp-specification-1.2.html#STOMP_Frames).

I am unclear what all you are running on the back-end and what all on the front-end?

@kum-deepak
Copy link
Member

Planning for next version of stompjs is on the way. Your participation will be really appreciated, please join at stomp-js/stompjs#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants