Stomp
class Stomp (View source)
Stubs for stomp https://pecl.php.net/package/stomp
Methods
Connect to server
Get the current stomp session ID
Close stomp connection
Sends a message to a destination in the messaging system
Register to listen to a given destination
Remove an existing subscription
Indicate whether or not there is a frame ready to read
Read the next frame
Start a transaction
Commit a transaction in progress
Roll back a transaction in progress
Acknowledge consumption of a message from a subscription using client acknowledgment
Get the last stomp error
Set timeout
Get timeout
Details
__construct(string $broker = null, string $username = null, string $password = null, array $headers = [])
Connect to server
string|false
getSessionId()
Get the current stomp session ID
bool
disconnect()
Close stomp connection
bool
send(string $destination, string|StompFrame $msg, array $headers = [])
Sends a message to a destination in the messaging system
bool
subscribe(string $destination, array $headers = [])
Register to listen to a given destination
bool
unsubscribe(string $destination, array $headers = [])
Remove an existing subscription
bool
hasFrame()
Indicate whether or not there is a frame ready to read
object|false
readFrame(string $className = 'stompFrame')
Read the next frame
bool
begin(string $transaction_id)
Start a transaction
bool
commit(string $transaction_id)
Commit a transaction in progress
bool
abort(string $transaction_id)
Roll back a transaction in progress
bool
ack(string|StompFrame $msg, array $headers = [])
Acknowledge consumption of a message from a subscription using client acknowledgment
string|false
error()
Get the last stomp error
void
setTimeout(int $seconds, int $microseconds = 0)
Set timeout
array
getTimeout()
Get timeout