(PECL stomp >= 0.1.0)
Stomp::unsubscribe -- stomp_unsubscribe — Removes an existing subscription
オブジェクト指向型 (method):
$destination
[, array $headers
] )手続き型:
$link
, string $destination
[, array $headers
] )Removes an existing subscription.
link手続き型のみ: stomp_connect() が返す stomp リンク ID。
destinationSubscription to remove.
headers追加のヘッダ (例: receipt) を含む連想配列。
成功した場合に TRUE を、失敗した場合に FALSE を返します。
Stomp は本来非同期です。同期通信を実装するには receipt ヘッダを追加します。これを追加すると、サーバーがメッセージを受領するかタイムアウトに達するまではメソッドが何も返さないようになります。
See stomp_ack().