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.
| Constructor and description |
|---|
StompServerConnection
(Object delegate) |
| Type | Name and description |
|---|---|
void |
close()Closes the connection with the client. |
void |
configureHeartbeat(long ping, long pong, Handler<StompServerConnection> pingHandler)Configures the heartbeat. |
Object |
getDelegate() |
StompServerHandler |
handler()@return
|
void |
onServerActivity()Notifies the connection about server activity (the server has sent a frame). |
void |
ping()Sends a `PING` frame to the client. |
StompServer |
server()
|
String |
session()@return
|
StompServerConnection |
write(Map<String, Object> frame = [:])Writes the given frame to the socket. |
StompServerConnection |
write(Buffer buffer)Writes the given buffer to the socket. |
Closes the connection with the client.
Configures the heartbeat.
ping - ping timepong - pong timepingHandler - the ping handler
Notifies the connection about server activity (the server has sent a frame). This method is used to handle the heartbeat.
Sends a `PING` frame to the client. A `PING` frame is a frame containing only EOL.
Writes the given frame to the socket.
frame - the frame, must not be null. (see Frame)Writes the given buffer to the socket. This is a low level API that should be used carefully.
buffer - the bufferio.vertx:vertx-stomp:3.1.0