The Stomp class

Introduction

Represents a connection between PHP and a Stomp compliant Message Broker.

Class synopsis

Stomp
class Stomp {
/* Methods */
public __construct(
    string $broker = ini_get("stomp.default_broker_uri"),
    string $username = ?,
    string $password = ?,
    array $headers = ?
)
public bool abort(string $transaction_id, array $headers = ?)
bool stomp_abort(resource $link, string $transaction_id, array $headers = ?)
public bool ack(mixed $msg, array $headers = ?)
bool stomp_ack(resource $link, mixed $msg, array $headers = ?)
public bool begin(string $transaction_id, array $headers = ?)
bool stomp_begin(resource $link, string $transaction_id, array $headers = ?)
public bool commit(string $transaction_id, array $headers = ?)
bool stomp_commit(resource $link, string $transaction_id, array $headers = ?)
resource stomp_connect(
    string $broker = ini_get("stomp.default_broker_uri"),
    string $username = ?,
    string $password = ?,
    array $headers = ?
)
bool stomp_close(resource $link)
public string error()
string stomp_error(resource $link)
public array getReadTimeout()
array stomp_get_read_timeout(resource $link)
public stringfalse getSessionId()
stringfalse stomp_get_session_id(resource $link)
public bool hasFrame()
bool stomp_has_frame(resource $link)
public stompframe readFrame(string $class_name = "stompFrame")
array stomp_read_frame(resource $link)
public bool send(string $destination, mixed $msg, array $headers = ?)
bool stomp_send(
    resource $link,
    string $destination,
    mixed $msg,
    array $headers = ?
)
public void setReadTimeout(int $seconds, int $microseconds = ?)
void stomp_set_read_timeout(resource $link, int $seconds, int $microseconds = ?)
public bool subscribe(string $destination, array $headers = ?)
bool stomp_subscribe(resource $link, string $destination, array $headers = ?)
public bool unsubscribe(string $destination, array $headers = ?)
bool stomp_unsubscribe(resource $link, string $destination, array $headers = ?)
public __destruct()
}
Table of Contents