|
Stomp::ackstomp_ackAcknowledges consumption of a message DescriptionObject oriented style (method):
public bool Stomp::ack
( mixed
$msg
[, array $headers
] )Procedural style:
bool stomp_ack
( resource
$link
, mixed $msg
[, array $headers
] )Acknowledges consumption of a message from a subscription using client acknowledgment. Parameters
Return Values
Returns Notes
Tip
Stomp is inherently asynchronous. Synchronous communication can be implemented adding a receipt header. This will cause methods to not return anything until the server has acknowledged receipt of the message or until read timeout was reached. Examples
Example #1 Object oriented style
<?php
Example #2 Procedural style
<?php |