Update Server/Network/Socket.php

Fixed to work with inStream and outStream