• Модуль: pull
  • Путь к файлу: ~/bitrix/modules/pull/classes/general/pull_options.php
  • Класс: CPullOptions
  • Вызов: CPullOptions::GetListenSecureUrl
static function GetListenSecureUrl($channelId = "")
{
	if (!is_array($channelId) && $channelId <> '')
		$channelId = Array($channelId);
	else if (!is_array($channelId))
		$channelId = Array();

	$optionName = "path_to_modern_listener_secure";
	$url = COption::GetOptionString("pull", $optionName, self::GetDefaultOption($optionName)).(count($channelId)>0?'?CHANNEL_ID='.implode('/', $channelId):'');
	$url = str_replace('#PORT#', self::GetQueueServerVersion()>1? '': ':8894', $url);

	return $url;
}