convertAndSend

inline suspend fun <T : Any> StompSessionWithClassConversions.convertAndSend(headers: StompSendHeaders, body: T? = null): StompReceipt?
inline suspend fun <T> TypedStompSession.convertAndSend(headers: StompSendHeaders, body: T): StompReceipt?

Sends a SEND frame to the server with the given headers and body, converted appropriately.

Return

null right after sending the frame if auto-receipt is disabled. 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.


suspend fun <T : Any> StompSessionWithClassConversions.convertAndSend(    destination: String,     body: T? = null,     bodyType: KClass<T>): StompReceipt?
inline suspend fun <T : Any> StompSessionWithClassConversions.convertAndSend(destination: String, body: T?): StompReceipt?
inline suspend fun <T> TypedStompSession.convertAndSend(destination: String, body: T): StompReceipt?

Sends a SEND frame to the server at the given destination with the given body, converted appropriately.

Return

null right after sending the frame if auto-receipt is disabled. 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.

Sources

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard