The easiest way would probably be to use the JSR-356 API. You basically
just make an @ServerEndpoint that connects to the remote endpoint, and then
passes messages back and forth. The JSRWebSocketServer gives and example of
how to setup the server endpoint.
Stuart
On Fri, Nov 30, 2018 at 8:34 AM Marc Boorshtein <
marc.boorshtein(a)tremolosecurity.com> wrote:
Using the 1.4 series, I'm trying to handle upgrade and
websockets.
Looking at a few examples and the code I think what I need to do is:
1. add the WebSocketServlet to the right path
2. implement WebSocketConnectionCallback that will call my remote ws://
server
Am I on the right track? I haven't found an example of doing this with
undertow but found something similar with jetty (
https://github.com/chipster/chipster-web-server/blob/master/src/main/java...)
but I havne't found the same thing for undertow so any pointers would be
appreciated.
Thanks
Marc Boorshtein
_______________________________________________
undertow-dev mailing list
undertow-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/undertow-dev