mirror of
https://github.com/apache/activemq.git
synced 2025-02-08 02:59:40 +00:00
WSServlet for websockets will attempt to detect the subprotocol requested and respond with the appropriate one. Currently the protocols loaded are what stomp.js use for stomp (v11.stomp and v12.stomp). If a protocol can't be found then a default will be returned, either "stomp" or "mqtt", which is the same behavior before this patch. This will make it a bit easier to use stomp over websockets out of the box as stomp.js will work by default. (cherry picked from commit 913f64476b66c452fa03cb4fb8c09d831825bca5)