PHP 8.1.28 Released!

Stomp::hasFrame

stomp_has_frame

(PECL stomp >= 0.1.0)

Stomp::hasFrame -- stomp_has_frameПроверяет, возможно ли чтение фрейма

Описание

Объектно-ориентированный стиль (метод):

public Stomp::hasFrame(): bool

Процедурный стиль:

stomp_has_frame(resource $link): bool

Проверяет, возможно ли чтение фрейма.

Список параметров

link

Только для процедурного стиля: идентификатор соединения stomp, полученный из stomp_connect().

Возвращаемые значения

Возвращает true если фрейм возможно прочитать, иначе false.

add a note

User Contributed Notes 1 note

up
-1
ricks at panamax dot com
7 years ago
Be aware that this function/method will block the caller, unless a frame is currently ready to be read. The duration of the block is the currently set read timeout.

The installation default for PECL Stomp read timeout is two seconds. Unless the associated ini file has been modified to override this value, or you have used the "set read timeout" function/method, the block time will be two seconds.
To Top