Giter VIP home page Giter VIP logo

Comments (3)

kum-deepak avatar kum-deepak commented on September 23, 2024

Please attach entire console output (you will need to attach it as a file, as it is \0 (NULLs)).

from stompjs.

coyot avatar coyot commented on September 23, 2024

It's unfortunately forbidden by NDA. But it looks like this:

<<< MESSAGE
content-length:123
message-id:123444
subscription:sub-1
content-type:application/json;charset=UTF-8
destination:my/queue
content-length:123
(empty line here)

In previous version we used it was more or less

<<< MESSAGE
content-length:123
message-id:123444
subscription:sub-1
content-type:application/json;charset=UTF-8
destination:my/queue
content-length:123

{ json_of_an_object }

There is obviously workaround - but I don't think change in the library was intentional, was it?

from stompjs.

kum-deepak avatar kum-deepak commented on September 23, 2024

This is an intentional change. To get roughly the old behavior please set logRawCommunication to true in your config (see the note at https://stomp-js.github.io/api-docs/latest/classes/Client.html#logRawCommunication)

The current version supports binary data in STOMP communication. The previous version just assumed everything to be valid UTF8. For that reason in older version the entire raw communication was simply added to the console. In the current version, it was messing up heavily if the frames were binary.

from stompjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.