PHP 8.4.2 Released!

Stomp::hasFrame

stomp_has_frame

(PECL stomp >= 0.1.0)

Stomp::hasFrame -- stomp_has_frameIndicates whether or not there is a frame ready to read

Descrição

Estilo orientado a objetos (method):

public Stomp::hasFrame(): bool

Estilo procedural:

stomp_has_frame(resource $link): bool

Indicates whether or not there is a frame ready to read.

Parâmetros

link

Somente no estilo procedural: O identificador do link stomp retornado por stomp_connect().

Valor Retornado

Returns true if a frame is ready to read, or false otherwise.

adicione uma nota

Notas Enviadas por Usuários (em inglês) 1 note

up
-1
ricks at panamax dot com
8 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