additionalPorts property

List<int> additionalPorts
final

More ports for the same app, eg. [8082]. Each isolate listens on serverPort and on each of these, with the same routes and the same settings (http2, tls, maxConnections and the other limits). One process serves all of them, so an app that needs two ports does not need a second process. With http2 on, each port takes HTTP/1.1 and HTTP/2. PORT in the env changes serverPort only. The test client (DoxTestClient) does not listen on these. Native server only. Default: none.

Implementation

final List<int> additionalPorts;