Skip to content

Instantly share code, notes, and snippets.

@jsor
Created November 15, 2012 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jsor/4081153 to your computer and use it in GitHub Desktop.
Save jsor/4081153 to your computer and use it in GitHub Desktop.
<?php
namespace React\Stomp;
class Acknowledgement
{
private $client;
private $messageId;
private $subscriptionId;
public function __construct($client, $messageId, $messageId)
{
}
public function ack()
{
}
public function nack()
{
}
}
<?php
$client->subscribe('/topic/foo', function ($frame, $acknowledgement) {
if ($problem) {
$acknowledgement->nack();
} else {
$acknowledgement->ack();
}
}, 'client');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment