convert And Send
abstract suspend fun <T : Any> convertAndSend( headers: StompSendHeaders, body: T? = null, bodyType: KClass<T>): StompReceipt?
Content copied to clipboard
Sends a SEND frame to the server with the given headers and the given body, converted appropriately based on bodyType.
Return
null right after sending the frame if auto-receipt is disabled and no receipt header is provided. Otherwise, this method suspends until the relevant RECEIPT frame is received from the server, and then returns a StompReceipt. If no RECEIPT frame is received from the server in the configured time limit, a LostReceiptException is thrown.