onHandshake property

Future<void> Function(HandshakeConnection connection)? onHandshake
final

Runs an in-band handshake over the freshly-opened control connection, before the node registers — the node-side counterpart of the hub's ConnectionAuthenticator (e.g. a challenge/response or signature exchange).

Whatever the handshake does not consume is replayed to the runtime, so the control protocol continues normally afterwards. Throwing aborts the attempt and falls into the usual reconnect backoff.

Implementation

final Future<void> Function(HandshakeConnection connection)? onHandshake;