don't rely on chrome.socket.write behavior