DtlsPeer.writeEarlyData

TlsResult writeEarlyData(const(ubyte)[] data)

Writes early data before the handshake completes.

Only valid for client-side resumed connections with 0-RTT enabled. Must be called after resumeWithSession() and before handshake() returns DONE.

Parameters

dataPlaintext data to send as early data.

Returns

TlsResult with bytes written, or ERROR if early data is not available.