Add asynchronous socket write (string and bytes).