Update WriteSocket.php