jmesnil / stomp-websocket

Stomp client for Web browsers and node.js apps
http://jmesnil.net/stomp-websocket/doc/
Apache License 2.0
1.43k stars 587 forks source link

Binary data with other language client #130

Open oufresh opened 7 years ago

oufresh commented 7 years ago

Hello, I'm using stomp javascript client with ActiveMq Topics. I subscribe to a topic and I receive text messages with xml content as expected. When I send messages to the Topic always text with xml other client receive data binary. In particular in Java they receive not a TextMessage but an ActiveMQBytesMessage wich has to be transformed in a string. Is there a way from Javascript to send TextMessage into the Topic? thanks a lot

elsporko commented 7 years ago

First of all I wanted to know if you have heard anything or received any resolution to this query. I have been having similar problems in that I have been having a hard time interpreting the response data.

While responding to you I realized that the group you made your request to is aimed at the original project. I believe that project has been abandoned but has been forked and continued elsewhere https://github.com/JSteunou/webstomp-client.

Good luck. I'd love to hear whatever responses you have received to your question.

Thank you, John Spooner

On Wed, Feb 15, 2017 at 9:06 AM, oufresh notifications@github.com wrote:

Hello, I'm using stomp javascript client with ActiveMq Topics. I subscribe to a topic and I receive text messages with xml content as expected. When I send messages to the Topic always text with xml other client receive data binary. In particular in Java they receive not a TextMessage but an ActiveMQBytesMessage wich has to be transformed in a string. Is there a way from Javascript to send TextMessage into the Topic? thanks a lot

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jmesnil/stomp-websocket/issues/130, or mute the thread https://github.com/notifications/unsubscribe-auth/AAnCQNQIASyKWbHCSCfdMmAOdYljZmezks5rcwZ3gaJpZM4MBwTI .

oufresh commented 7 years ago

Hi! I Heard nothing anyway I'm going to try the webstomp-client you suggest. I'll let you know.

jhcao23 commented 7 years ago

I believe you need to add a converter in your server side. Client side is using binary as a safety concern - I guess.

oufresh commented 7 years ago

Hello, I tried https://github.com/JSteunou/webstomp-client but it has the same problem. Testing with a Java program subscribed to the topic it tells me that the message is an ActiveMQBytesMessage not a TextMessage.