支持 Stomp 1.2 的客户端

2.0.3 2017-06-06 20:48 UTC

README

包括对1.2的局部支持(包括NACK)、循环缓冲区、XML映射(除了JSON)以及大量针对fusesource.org代码库的修复和改进,这是我们几年前工作的代码库。

许可证:Apache

运行单元测试

composer install (or composer update)
vendor/bin/phpunit

分支自:http://stomp.fusesource.org

用法

  use CentralDesktop\Stomp\Connection;
  $factory = new \CentralDesktop\Stomp\ConnectionFactory\Failover(['host1:61612','host2:61612']), true);
  $con = new Connection($factory);
  
  // connect with some bad credentials and stomp protocol 1.2 (default 1.0 currently)
  $con->connect('username','password',1.2);
  
  // send a message to the "test" queue with body of payload
  // and with the message attribute persistent:true
  $con->send("test", "payload", array("persistent" => 'true'));