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.
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.
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.
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