• Модуль: xmpp
  • Путь к файлу: ~/bitrix/modules/xmpp/classes/server.php
  • Класс: CXMPPServer
  • Вызов: CXMPPServer::SendAll
public function SendAll($arMessage, $clientDomain = "")
{
	if (empty($clientDomain))
		$clientDomain = CXMPPServer::GetDomain();

	if (array_key_exists($clientDomain, $this->arClientsIndex))
	{
		foreach ($this->arClientsIndex[$clientDomain] as $jid => $arId)
		{
			foreach ($arId as $id)
			{
				if (array_key_exists($id, $this->arClients))
				{
					if ($this->arClients[$id]->IsAuthenticated())
						$this->arClients[$id]->Send($arMessage);
				}
			}
		}
	}
}