send Binary
suspend fun StompSession.sendBinary(destination: String, body: ByteArray?): StompReceipt?
Content copied to clipboard
Sends a SEND frame to the server at the given destination with the given binary body.
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.