In the ON SOCKREAD event I use:

breplace &bin 13 32 10 32 12 32 9 32 11 32
%s [ $+ [ $sockname ] ] = $bvar(&bin,1,$sockbr).text

Only if at some point the replacement doesn't work.