ws-api.example.com/public
, то не подключится.$PORT = 443;
$HOST = "ws-api.example.com";
$sock = socket_create(AF_INET, SOCK_STREAM, 0)
or die("error: could not create socket\n");
$succ = socket_connect($sock, $HOST, $PORT)
or die("error: could not connect to host\n");
echo "Connect [OK] \n";