Use socket when connect to the stream
In order to use http socket, you need use http_stream()