358.7. Websocket 示例
在这个示例中,我们定义在 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>