Метод logReadToSync

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу строки 778–785
~/bitrix/modulesim/lib/V2/Chat.php

Исходный код

PHP
public

Сигнатура метода

public function logReadToSync(int $readerId): void

Возвращает: void

Описание

Writes a read sync record (Sync\Event ADD_EVENT / CHAT_ENTITY) for catch-up sync of clients — including the mobile app local DB via im.v2.Sync.list (an offline device that missed the pull restores state on the next sync session). Extracted from {@see onAfterMessagesRead} so that programmatic event-free read primitives ({@see \Bitrix\Im\V2\Reading\Reader::readExactly}) can give a durable sync signal WITHOUT publishing a typed read event (loop-safety: the typed event is sent by {@see \Bitrix\Im\V2\Chat\ExternalChat::onAfterMessagesRead}).

Параметры

1
Имя Тип По умолчанию Флаги
$readerId int -
-