php8.5
Home/ Manual/ stomp / stomp/ Stomp::subscribe

Stomp::subscribe

PHP function Edit on GitHub ✎

(PECL stomp >= 0.1.0)

Registers to listen to a given destination

Description

Oop (method):

Stomp::subscribe(string $destination, [array $headers]): bool

Procedural:

stomp_subscribe(resource $link, string $destination, [array $headers]): bool

Registers to listen to a given destination.

Parameters

destination

Destination to subscribe to.

Return Values

Success

Examples

See stomp_ack().

Notes Sync

Source: reference/stomp/stomp/subscribe.xml · from the official PHP manual (php/doc-en)