Dtls13Client.writeEarlyData

size_t writeEarlyData(const(ubyte)[] data)

Writes early data (0-RTT) to the server.

Encrypts application data using early traffic keys and sends it as an APPLICATION_DATA record before the handshake completes. Must be called after handshake() returns NEED_WRITE (ClientHello sent) and before the server's response is processed.

Parameters

dataApplication data to send.

Returns

The number of bytes written, or 0 on error.