<div dir="ltr"><div dir="ltr"><div><div dir="ltr" class="gmail_signature">On Fri, Nov 30, 2018 at 2:41 PM Marc Boorshtein &lt;<a href="mailto:marc.boorshtein@tremolosecurity.com">marc.boorshtein@tremolosecurity.com</a>&gt; wrote:<br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Thanks Stuart.  I need to avoid annotations since this will be configured dynamically.  I was wrong about the version, right now i&#39;m on 2.0.9.Final.  I&#39;m trying to create a websocket proxy.  I was able to get the ReceiveListener registered in Undertow and create a WebSocketClient.  I&#39;m trying to pipe the data from the client through Undertow to the server, starting with a Text message:<div><br></div><div><div>@Override</div><div><span style="white-space:pre-wrap">        </span>protected void onText(WebSocketChannel webSocketChannel, StreamSourceFrameChannel messageChannel)</div><div><span style="white-space:pre-wrap">                        </span>throws IOException {</div><div><span style="white-space:pre-wrap">                </span>PooledByteBuffer b = pool.allocate();</div><div><span style="white-space:pre-wrap">                </span>ByteBuffer buffer = b.getBuffer();</div><div><span style="white-space:pre-wrap">                </span>while (messageChannel.read(buffer) &gt; 0) {</div><div><span style="white-space:pre-wrap">                        </span>WebSockets.sendText(buffer, wsClient, null);</div><div><span style="white-space:pre-wrap">                </span>}</div><div><span style="white-space:pre-wrap">                </span></div><div><span style="white-space:pre-wrap">                </span>b.close();</div><div><span style="white-space:pre-wrap">        </span>}</div><div><br></div><div><br></div><div><div class="gmail-m_5880389118729045408gmail-m_-9014391979265479174gmail_signature"><br></div></div></div></div></div></blockquote><div><br></div><div><br></div><div>After reading through the unit tests i found BufferedTextMessage which did the trick.  Great having well written test cases, they&#39;ve been incredibly helpful as I work my way through this.</div><div><br></div><div>Thanks</div><div> </div></div></div></div>