PHP.nl

stomp_connect_error

stomp_connect_error

Returns a string description of the last connect error

string **stomp_connect_error**

Returns a string description of the last connect error.

A string that describes the error, or null if no error occurred.

Voorbeeld: example

<?php
$link = stomp_connect('http://localhost:61613');

if(!$link) {
    die('Connection failed: ' . stomp_connect_error());
}
?>
Connection failed: Invalid Broker URI scheme