Code Monkey home page Code Monkey logo

Comments (4)

jmesnil avatar jmesnil commented on June 7, 2024

I'm not sure to follow you.

This library requires using the STOMP 1.0 protocol (and 1.1, 1.2 when the lib when I update it). The STOMP protoocol defines what's goes in the WebSocket frames.

If I were to add a subprotocol, I would hardcode it to be v10.stomp, then v11.stomp, etc. but not let the client define it. Or am I misunderstanding the subprotocol thing?

from stomp-websocket.

stormmq avatar stormmq commented on June 7, 2024

Jeff,

WebSockets allow more than one 'subprotocol' to access a given URI. The
server needs to be able to select one. If its unspecified, it has to
default.

Why is it needed?

Well, we have begun an implementation where STOMP, AMQP 1.0, WAMP and MQTT
can all be used on the same URI, which represents a queue (we might even
add a REST binding to the same URI; the jury's out).

The value of the 'subprotocol' should only be versioned for a significant
breaking change - in my view, STOMP v1.0 and v1.1 can happily co-exist,
because there is enough for the server to distinguish one from another.
Others might have a different view. I agree that it is hardcoded - the
client should not be able to change it.

The reason for the overload is that there are WebSockets servers which do
not support multiple protocols (or even receiving one protocol) - mostly
because they grew up with the historic drafts.

Raph

Chief Architect, stormmq
Secretary, OASIS AMQP Standard
[email protected]
+44 7590 675 756

UK Office:
Hamblethorpe Farm, Crag Lane, Bradley BD20 9DB, North Yorkshire, United
Kingdom
Telephone: +44 845 3712 567

Registered office:
16 Anchor Street, Chelmsford, Essex, CM2 0JY, United Kingdom
StormMQ Limited is Registered in England and Wales under Company Number
07175657
StormMQ.com

On 24 October 2012 16:51, Jeff Mesnil [email protected] wrote:

I'm not sure to follow you.

This library requires using the STOMP 1.0 protocol (and 1.1, 1.2 when the
lib when I update it). The STOMP protoocol defines what's goes in the
WebSocket frames.

If I were to add a subprotocol, I would hardcode it to be v10.stomp, then
v11.stomp, etc. but not let the client define it. Or am I misunderstanding
the subprotocol thing?


Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-9744714.

from stomp-websocket.

jmesnil avatar jmesnil commented on June 7, 2024

Raph, does this PR match your requirements?

from stomp-websocket.

stormmq avatar stormmq commented on June 7, 2024

Jeff,

Yes, I think that should work. Thank you for considering the change.

Raph

Raphael Cohn
Chief Architect, stormmq
Secretary, OASIS AMQP Standard
[email protected]
+44 7590 675 756

UK Office:
Hamblethorpe Farm, Crag Lane, Bradley BD20 9DB, North Yorkshire, United
Kingdom
Telephone: +44 845 3712 567

Registered office:
16 Anchor Street, Chelmsford, Essex, CM2 0JY, United Kingdom
StormMQ Limited is Registered in England and Wales under Company Number
07175657
StormMQ.com

On 5 November 2012 14:03, Jeff Mesnil [email protected] wrote:

Raph, does this PR match your requirements?


Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-10071339.

from stomp-websocket.

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.