mxmbsocket/lib/Ratchet/Application/WAMP/Command/Action/CallError.php
Chris Boden 3372f72344 WAMP FUNCTIONAL
RPC return message
RPC return error

WAMP protocol functionally complete!
2012-01-19 21:20:36 -05:00

31 lines
647 B
PHP

<?php
namespace Ratchet\Application\WAMP\Command\Action;
use Ratchet\Resource\Command\Action\SendMessage;
class CallError extends SendMessage {
protected $_id;
protected $_uri;
protected $_desc;
public function setError($callId, $uri, $desc) {
$this->_id = $callId;
$this->_uri = $uri;
$this->_desc = $desc;
return $this->setMessage(json_encode(array(4, $callId, $uri, $desc)));
}
public function getId() {
return $this->_id;
}
public function getUri() {
return $this->_uri;
}
public function getDescription() {
return $this->_desc;
}
}