Comments (4)
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.
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.
Raph, does this PR match your requirements?
from stomp-websocket.
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)
- client send msg in a loop(loop<=200),the websocket disconnect.
- TypeError: undefined is not a constructor (evaluating 'new WebSocketClient()')
- how to user in nuxt?
- RabbitMQ Stomp Endpoint 404 Not Found http://127.0.0.1:15674/stomp HOT 2
- SignalR
- Please publish 2.3.4 version to npm repository HOT 2
- How to set prefetch count?
- Error related to durable and auto_delete settings HOT 1
- error:Uncaught Error: Cannot find module 'net' HOT 2
- subscribe inside forloop would not trigger call back HOT 1
- This Code seems to be useless!
- setting selector is ineffective
- Loosing the connection after few mins , STOMP Client <-> Spring framework
- Cannot be accessed “https://cdn.bootcdn.net/ajax/libs/stomp.js/2.3.3/stomp.min.js”
- the way to get 'now' function is wrong ?
- The connection is not established, and the server keeps sending "H" messages
- Uncaught DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
- net module not found in stompjs
- the version was discontinued 2.3.4? HOT 1
- why subcribe failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stomp-websocket.