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

	$url = COption::GetOptionString("pull", "path_to_websocket", self::GetDefaultOption("path_to_websocket")).(count($channelId)>0?'?CHANNEL_ID='.implode('/', $channelId):'');
	return $url;
}