Update SocketWrapper.php