• Модуль: pull
  • Путь к файлу: ~/bitrix/modules/pull/classes/general/pull_push.php
  • Класс: CPushManager
  • Вызов: CPushManager::sendBatch
private function sendBatch($batch)
{
	if ($batch <> '')
	{
		$request = new WebHttpRequest(
			WebHttpMethod::POST,
			new WebUri($this->remoteProviderUrl . "?key=" . Application::getInstance()->getLicense()->getHashLicenseKey()),
			null,
			new WebHttpFormStream([
				"Action" => "SendMessage",
				"MessageBody" => $batch
			])
		);
		$httpClient = new WebHttpClient(["waitResponse" => false]);
		$httpClient->sendAsyncRequest($request);

		return true;
	}

	return false;
}