hornetq/hornetq — pull request #661 by matzew (2012-11-10 11:43:23+00:00)
Title: Add v10.stomp as a valid subprotocol

Hi,

in a recent update of the 'stomp-websocket' library @jmesnil introduce the "v10.stomp" as the submitted subprotocol.

When using the 2.3.0.Beta1 in combination with the latest version of the 'stomp-websocket' JS library, I am getting this execption:

```
org.jboss.netty.handler.codec.http.websocketx.WebSocketHandshakeException: Requested subprotocol(s) not supported: v10.stomp
at org.jboss.netty.handler.codec.http.websocketx.WebSocketServerHandshaker13.handshake(WebSocketServerHandshaker13.java:170)
at org.hornetq.core.protocol.stomp.WebSocketServerHandler.handleHttpRequest(WebSocketServerHandler.java:87)
at org.hornetq.core.protocol.stomp.WebSocketServerHandler.messageReceived(WebSocketServerHandler.java:63)
at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:196)
at org.jboss.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:111)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.unfoldAndFireMessageReceived(ReplayingDecoder.java:600)
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:584)
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:445)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
at org.jboss.netty.channel.socket.oio.OioWorker.process(OioWorker.java:72)
at org.jboss.netty.channel.socket.oio.AbstractOioWorker.run(AbstractOioWorker.java:73)
at org.jboss.netty.channel.socket.oio.OioWorker.run(OioWorker.java:52)
at org.jboss.netty.util.VirtualExecutorService$ChildExecutorRunnable.run(VirtualExecutorService.java:176)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
```

when simply adding the applying the "v10.stomp" value for the subprotocol, the version of the new and the old stomp.js file work