Description
HttpServerRoutes.ws()
says: Additional regex matching is available e.g. "/test/{param}". Params are resolved using HttpServerRequest.param(CharSequence)
. This is not correct (at least not this way).
-
The
ws()
methods work withWebsocketInbound
and not withHttpServerRequest
. -
WebsocketInbound
does not extendHttpServerRequest
and does not have any of theparam*
methods thatHttpServerRequest
has. -
The implementation of
WebsocketInbound
:HttpServerWSOperations
does have these methods because it inherits them fromHttpServerOperations
(which is also the implementation ofHttpServerRequest
).
So IMHO either this part should be removed from the ws()
javadocs or the param*
method declarations should be moved from HttpServerRequest
to an interface which then could be extended by both HttpServerRequest
and WebsocketInbound
.