357.7. WebSocket Example
在本例中,我们定义了一个在 http://localhost:8080/myapp/mysocket
中公开 WebSocket 服务的路由,并返回对同一频道的响应:
<route> <from uri="undertow:ws://localhost:8080/myapp/mysocket"/> <transform><simple>Echo ${body}</simple></transform> <to uri="undertow:ws://localhost:8080/myapp/mysocket"/> </route>