TcpListener.onConnection
Set the high-level connection callback.
Fires when a new connection is established and wrapped into a TcpConnection. The connection ref is valid for the callback duration. Thread affinity: event loop thread only. Non-reentrant.
Parameters
callback | Callback invoked when a new connection is established and wrapped. |