GithubHelp home page GithubHelp logo

Comments (5)

WrathChaos avatar WrathChaos commented on July 17, 2024

Hi @marain87,
Looking for it :)

from stompclientlib.

WrathChaos avatar WrathChaos commented on July 17, 2024

@marain87 Actually you still should be able to use the function with connectionHeaders. There are two methods with "openSocketWithURLRequest".

Line 98

I just overloaded these methods. It should be working. Can you provide me with a basic sample? I can test it for you.

from stompclientlib.

marain87 avatar marain87 commented on July 17, 2024

HI @WrathChaos, Thanks for the reply.
Actually, I am using Line 98 function to open Socket with a custom header.
I think that the code should check null and not replace the current header value.

like following :

if (connectionHeaders == nil) {
	connectionHeaders = [StompCommands.commandHeaderAcceptVersion:"1.1,1.2"]
}

or

if (connectionHeaders == nil) {
	connectionHeaders = [:]
}
connectionHeaders![StompCommands.commandHeaderAcceptVersion] = "1.1,1.2"

from stompclientlib.

WrathChaos avatar WrathChaos commented on July 17, 2024

@marain87 It could be awesome if you have time to make a PR :) If you do not have time, I can add it in the future.

from stompclientlib.

WrathChaos avatar WrathChaos commented on July 17, 2024

Release 1.3.5 is alive now. Thank you @marain87 🔥

Just closed the issue.

from stompclientlib.

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.