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

# send

`open fun send(headers: MutableMap<String, String>, body: Buffer): StompClientConnection`

Sends a `SEND` frame to the server.

### Parameters

`headers` - the headers, must not be `null`

`body` - the body, may be `null`

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

`open fun send(headers: MutableMap<String, String>, body: Buffer, receiptHandler: Handler<Frame>): StompClientConnection`

Sends a `SEND` frame to the server.

### Parameters

`headers` - the headers, must not be `null`

`body` - the body, may be `null`

`receiptHandler` - the handler invoked when the `RECEIPT` frame associated with the sent frame has been received. The handler receives the sent frame.

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

`open fun send(destination: String, body: Buffer): StompClientConnection`

Sends a `SEND` frame to the server to the given destination. The message does not have any other header.

### Parameters

`destination` - the destination, must not be `null`

`body` - the body, may be `null`

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

`open fun send(destination: String, body: Buffer, receiptHandler: Handler<Frame>): StompClientConnection`

Sends a `SEND` frame to the server to the given destination. The message does not have any other header.

### Parameters

`destination` - the destination, must not be `null`

`body` - the body, may be `null`

`receiptHandler` - the handler invoked when the `RECEIPT` frame associated with the sent frame has been received. The handler receives the sent frame.

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

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

Sends the given frame to the server.

### Parameters

`frame` - the frame

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

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

Sends the given frame to the server.

### Parameters

`frame` - the frame

`receiptHandler` - the handler invoked when the `RECEIPT` frame associated with the sent frame has been received. The handler receives the sent frame.

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

`open fun send(destination: String, headers: MutableMap<String, String>, body: Buffer): StompClientConnection`

Sends a `SEND` frame to the server to the given destination.

### Parameters

`destination` - the destination, must not be `null`

`headers` - the header. The `destination` header is replaced by the value given to the `destination` parameter

`body` - the body, may be `null`

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

`open fun send(destination: String, headers: MutableMap<String, String>, body: Buffer, receiptHandler: Handler<Frame>): StompClientConnection`

Sends a `SEND` frame to the server to the given destination.

### Parameters

`destination` - the destination, must not be `null`

`headers` - the header. The `destination` header is replaced by the value given to the `destination` parameter

`body` - the body, may be `null`

`receiptHandler` - the handler invoked when the `RECEIPT` frame associated with the sent frame has been received. The handler receives the sent frame.

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