<div>We receive messages from the socket, defrag them and put the onto an in memory queue. Later on some process takes the message from that queue, does things with the message, and in some cases it needs to send something back using the same Channel / Socket / Connection.</div>
<div><br></div>Messages that are put on the queue are completely decoupled from Netty.<div><br></div><div>The process that &quot;does something&quot; with the message is not aware of Netty either.</div><div><br></div><div>
The question is what would be the most elegant way to send something (back) through the same Channel, after the message was handed off to some not Netty components?</div><div><br></div><div>Thank you!</div>