send

suspend fun send(payload: ByteArray)

Sends a binary payload to the connected WebSocket session with retry logic.

Parameters

payload

The binary data to be sent as a ByteArray. Throws an exception if the session is permanently closed or reaches maximum retry attempts.