8990919293949596
if (data.isWrapper()) { // call retain to make sure it is not released before the write completes // the write will call buf.release() by it own buf.retain(); } WebSocketFrame frame = new DefaultWebSocketFrame(WebSocketFrame.FrameType.BINARY, buf); writeFrame(frame); }
949596979899100101
WebSocketFrame frame = new DefaultWebSocketFrame(WebSocketFrame.FrameType.BINARY, buf); writeFrame(frame); } protected void writeTextFrameInternal(String str) { WebSocketFrame frame = new DefaultWebSocketFrame(str); writeFrame(frame); }
622623624625626627628629630631632
conn.handleMessage(msg); } break; case CLOSE: //Echo back close frame ch.write(new DefaultWebSocketFrame(WebSocketFrame.FrameType.CLOSE)); } } else if (msg instanceof HttpContent) { if (wsRequest != null) { wsRequest.content().writeBytes(((HttpContent) msg).content()); if (msg instanceof LastHttpContent) {