CakeFest 2024: The Official CakePHP Conference

Stomp::unsubscribe

stomp_unsubscribe

(PECL stomp >= 0.1.0)

Stomp::unsubscribe -- stomp_unsubscribeRemoves an existing subscription

Descrizione

Stile orientato agli oggetti (method):

public Stomp::unsubscribe(string $destination, array $headers = ?): bool

Stile procedurale:

stomp_unsubscribe(resource $link, string $destination, array $headers = ?): bool

Removes an existing subscription.

Elenco dei parametri

link

Solo stile procedurale: l'identificatore di connessione stomp restituito da stomp_connect().

destination

Subscription to remove.

headers

Array associativo che contiene le intestazioni addizionali (per esempio: receipt).

Valori restituiti

Restituisce true in caso di successo, false in caso di fallimento.

Esempi

See stomp_ack().

Note

Suggerimento

Stomp è intrinsecamente asincrono. Le comunicazioni sincrone possono essere implementate aggiungendo un'intestazione di ricevuta. Questo fa sì che i metodi non restituiscono nulla finché il server non abbia confermato la ricezione del messaggio o al raggiungimento del timeout.

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top