JSteunou / webstomp-client

Stomp client over websocket for browsers
Apache License 2.0
299 stars 59 forks source link

Use 2 fallbacks for ws protocol #74 #75 #76

Closed JSteunou closed 5 years ago

JSteunou commented 5 years ago

Add several fallbacks on protocol

  1. if there are no ws.protocol (being server or ws client fault) I will fallback on Client options.protocols 1st item
  2. event with this, if there is still a no match in supported version, I kept the 2nd fallback, but change it from a list of all STOMP versions to only the newest. If you know you have issues with your server or your ws client, and need STOMP 1.0 instead of 1.2, force the protocol with options.protocols

And for a better logging remove usage console.warn to use the internal debug function instead which does not log if options.debug is falsy.

Marcsimm commented 5 years ago

When can a new release of this be made?

JSteunou commented 5 years ago

I'm waiting for @Polve and @krusche feedbacks

Polve commented 5 years ago

Is the release 1.2.5 pushed on the npm repository already?

krusche commented 5 years ago

Would be great if you could publish it as beta, then I can test if it works

JSteunou commented 5 years ago

@Polve nope I was waiting for your reviews / tests

Guys, help me helping you, npm can pull git repo and branches :) This branch contains dist folder and up to date build files.

Polve commented 5 years ago

The branch is not working for me, I wrote the details here (sorry, I know, wrong thread)

https://github.com/JSteunou/webstomp-client/issues/75

JSteunou commented 5 years ago

published in 1.2.5