vertx / io.vertx.ext.stomp / StompClientConnection / disconnect

disconnect

abstract fun disconnect(): StompClientConnection

Disconnects the client. Unlike the #close() method, this method send the DISCONNECT frame to the server.

Return
the current StompClientConnection

abstract fun disconnect(receiptHandler: Handler<Frame>): StompClientConnection

Disconnects the client. Unlike the #close() method, this method send the DISCONNECT frame to the server.

Parameters

receiptHandler - the handler invoked when the RECEIPT frame associated with the disconnection has been processed by the server. The handler receives the sent frame (DISCONNECT).

Return
the current StompClientConnection

abstract fun disconnect(frame: Frame): StompClientConnection

Disconnects the client. Unlike the #close() method, this method send the DISCONNECT frame to the server. This method lets you customize the DISCONNECT frame.

Parameters

frame - the DISCONNECT frame.

Return
the current StompClientConnection

abstract fun disconnect(frame: Frame, receiptHandler: Handler<Frame>): StompClientConnection

Disconnects the client. Unlike the #close() method, this method send the DISCONNECT frame to the server. This method lets you customize the DISCONNECT frame.

Parameters

frame - the DISCONNECT frame.

receiptHandler - the handler invoked when the RECEIPT frame associated with the disconnection has been processed by the server. The handler receives the sent frame (DISCONNECT).

Return
the current StompClientConnection