OptionalconnectionConnection count for each connection kind. The function should be pure to avoid unexpected behavior.
Defaults to TDLib logic:
Non-zero value for main is for advanced users only
as it may lead to unexpected behavior, and is generally not recommended
because of unnecessary extra load on both the server and the client as well as
increased possibility of encountering AUTH_KEY_DUPLICATED errors.
OptionalfloodPer-connection-slot flood-control limits (each socket throttles its own connect attempts independently, like TDLib). Override only if you understand the consequences — defaults are derived from TDLib and should fit most clients.
See ConnectionFloodLimits for the limiter taxonomy.
false to disable flood control.
OptionalinactivityIdle timeout for non-main connections, in ms
OptionalmiddlewaresList of middlewares to use for the network manager
Note: these middlewares apply to outgoing requests only. If you need to handle incoming updates, use a Dispatcher instead.
OptionalpingPing interval in milliseconds.
OptionaluseWhether to use PFS (Perfect Forward Secrecy) for all connections. This is disabled by default
Additional params passed into NetworkManager by the user that customize the behavior of the manager