Defines a STOMP client.
package |
Default |
---|
__construct()
close() : void
connect( $arg0, $arg1 = null, $arg2 = null, $arg3 = null) : $this
param $resultHandler [callable] handler called with the connection result. A failure will be sent to the handler if a TCP level issue happen before the CONNECTED
frame is received. Afterwards, the #exceptionHandler(Handler) is called.
connect($resultHandler)
Connects to the server.
param $net [NetClient] the NET client to use param $resultHandler [callable] handler called with the connection result connect($net, $resultHandler)
Connects to the server.
param $port [integer] the server port param $host [string] the server host param $resultHandler [callable] handler called with the connection result connect($port, $host, $resultHandler)
Connects to the server.
param $port [integer] the server port param $host [string] the server host param $net [NetClient] the NET client to use param $resultHandler [callable] handler called with the connection result connect($port, $host, $net, $resultHandler)
callable | NetClient | integer
callable | string
callable | NetClient
callable
$this
the current {@link StompClient}
create( $arg0, $arg1 = null) : \io\vertx\jphp\ext\stomp\StompClient
param $vertx [Vertx] the vert.x instance to use create($vertx)
Creates a @see \io\vertx\jphp\ext\stomp\StompClient using the default implementation.
param $vertx [Vertx] the vert.x instance to use param $options [StompClientOptions | array] the options create($vertx, $options)
Vertx
array | StompClientOptions
\io\vertx\jphp\ext\stomp\StompClient
the created {@link StompClient}
errorFrameHandler( $arg0) : $this
callable
$this
the current {@link StompClient}
exceptionHandler( $arg0) : $this
callable
$this
the current {@link StompClient}
isClosed() : boolean
boolean
whether or not the client is connected to the server.
receivedFrameHandler( $arg0) : $this
This handler can be used for logging, debugging or ad-hoc behavior. The frame can still be modified at the time.
When a connection is created, the handler is used as
see | \io\vertx\jphp\ext\stomp\StompClientConnection::receivedFrameHandler. |
---|
callable
$this
the current {@link StompClient}
vertx() : \io\vertx\jphp\core\Vertx
writingFrameHandler( $arg0) : $this
This handler can be used for logging, debugging or ad-hoc behavior. The frame can still be modified at the time.
When a connection is created, the handler is used as
see | \io\vertx\jphp\ext\stomp\StompClientConnection::writingFrameHandler. |
---|
callable
$this
the current {@link StompClient}