How to do websockets in embedded undertow?

java, jboss, undertow, websocket, wildfly

Solution

Take a look at undertow examples

chat: https://github.com/undertow-io/undertow/tree/master/examples/src/main/java/io/undertow/examples/chat

and websockets example https://github.com/undertow-io/undertow/tree/master/examples/src/main/java/io/undertow/examples/websockets

this will help you.

Problem

According to this: http://undertow.io/ it supports websockets. There is no documentation on how to do so, though. I just want a simple embedded undertow handling web sockets example. I don't want to grab the whole jboss app server.

Original source