what stomp version is the PHP PEAR library using, I know keep alive is only in 1.1 not 1.0, maybe there is a version mis match, altho we do support both protocols
Hi and thank you for your answer.
I did not find the information about what stomp protocol is supported from the PHP module since it is rather poorly documented...
I'd expect it to be Stomp 1.0. But since it is a text protocol I am sure I can implement everything we need to simply transmit such a message manually.
If you say HornetQ supports stomp 1.1 you are probably referring to HornetQ 2.2.14, aren't you? I did not find in the documentation where it explicitly says whether 1.0 or 1.1 are supported in 2.2.5 or 2.2.14 (http://docs.jboss.org/hornetq/2.2.5.Final/user-manual/en/html/interoperability.html#stomp, http://docs.jboss.org/hornetq/2.2.14.Final/user-manual/en/html/interoperability.html#stomp)...
Unfortunately, we cannot use 2.2.14 right now since it is not stable for us (see here: https://community.jboss.org/thread/200606).
The STOMP 1.1 protocol (http://stomp.github.com/stomp-specification-1.1.html) defines that if a sender does not have a proper stomp frame to send (what would be the case for a mere consumer) it should send single newline byte (0x0A) instead of a heart-beat. Would this work? Does this generate a stomp frame that is maintained as a message in the Queue? or can we just send this newline character every 15 seconds and the connection will stay alive?
Thank you for your time,