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

# disconnect

`open fun disconnect(): StompClientConnection`

Disconnects the client. Unlike the `io.vertx.rxjava.ext.stomp.StompClientConnection#close` method, this method send the `DISCONNECT` frame to the server.

Return
the current io.vertx.rxjava.ext.stomp.StompClientConnection

`open fun disconnect(receiptHandler: Handler<Frame>): StompClientConnection`

Disconnects the client. Unlike the `io.vertx.rxjava.ext.stomp.StompClientConnection#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 io.vertx.rxjava.ext.stomp.StompClientConnection

`open fun disconnect(frame: Frame): StompClientConnection`

Disconnects the client. Unlike the `io.vertx.rxjava.ext.stomp.StompClientConnection#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 io.vertx.rxjava.ext.stomp.StompClientConnection

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

Disconnects the client. Unlike the `io.vertx.rxjava.ext.stomp.StompClientConnection#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 io.vertx.rxjava.ext.stomp.StompClientConnection