-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WAMP Subprotocol rejected by Netty #800
Comments
Would be really nice, if it would work! Would love to use Autobahn with Playframework! |
I think we should wait for wildcard support in Netty. |
How to fix this problem? Or how to deploy WAMP with Play? |
The work around for the WAMPlay library is here: https://github.com/blopker/WAMPlay/issues/1 |
Also, Netty now allows a comma separated list of allowed sub-protocols. Adding |
Check out #1101 for the fix! |
Update with Netty: netty/netty#1374 |
I think this issue can be closed now |
Wow, cool~ time to close this issue. |
Yep! I forgot about this one. |
I'm trying to implement a WAMP module for Play so I can do pub/sub and RPC over websockets. The canonical WAMP JavaScript library is AutobahnJS which sends the Sec-WebSocket-Protocol header set to 'wamp'. This subprotocol is rejected by the WebSocketServerHandshaker13.java in Netty. The reason is that in Play's WebSocketHandshake.scala the handshaker is constructed with null for the subprotocol argument.
I looked at the Netty source and according to the comments the null value means subprotocols are not supported. This seems overly constrained to me for Play. I'm going to ask the Netty people for a 'wildcard' value to accept all subprotocols, but for now can we change null to "wamp"? This won't affect websocket requests with no protocol header, but it will allow WAMP to function normally.
Thanks!
The text was updated successfully, but these errors were encountered: