TcpListener.onConnection

void onConnection(ConnectionCallback callback) @property @trusted

Set the high-level connection callback.

Parameters

callbackCallback invoked when a new connection is established and wrapped. Callback contract: the TcpConnection is EVE-owned (internally created and adopted). Fires on the event loop thread. Does not fire after dispose().