StompServerConnection

Class representing a connection between a STOMP client a the server. It keeps a references on the client socket, so let write to this socket.

package

Default

Methods

__construct

__construct() 

Closes the connection with the client.

close() : void

Configures the heartbeat.

configureHeartbeat( $arg0,  $arg1,  $arg2) : void

Arguments

$arg0

integer

$arg1

integer

$arg2

callable

handler

handler() : \io\vertx\jphp\ext\stomp\StompServerHandler

Response

\io\vertx\jphp\ext\stomp\StompServerHandler

the STOMP server handler dealing with this connection

Notifies the connection about server activity (the server has sent a frame). This method is used to handle the heartbeat.

onServerActivity() : void

Sends a `PING` frame to the client. A `PING` frame is a frame containing only <code>EOL</code>.

ping() : void

server

server() : \io\vertx\jphp\ext\stomp\StompServer

Response

\io\vertx\jphp\ext\stomp\StompServer

the STOMP server serving this connection.

session

session() : string

Response

string

the STOMP session id computed when the client has established the connection to the server

Writes the given frame to the socket.

write( $arg0) : $this

param $frame [Frame | array] the frame, must not be {@code null}. write($frame)

Writes the given buffer to the socket. This is a low level API that should be used carefully.

param $buffer [Buffer] the buffer write($buffer)

Arguments

$arg0

Buffer | Frame | array

Response

$this

the current {@link StompServerConnection}