startShared function

Future<HttpServer> startShared(
  1. dynamic address,
  2. int port
)

Boots a shared server instance. Use this if launching multiple isolates.

Implementation

Future<HttpServer> startShared(address, int port) =>
    HttpServer.bind(address ?? '127.0.0.1', port, shared: true);