I cant test right now, but couldn't you do it with a prefab fd?
exec 3<>/dev/tcp/seashells.io/1337
cat <&3
echo "example" >3
Or something like that?