serve function

Future<Runtime> serve(
  1. Server server, {
  2. String host = '127.0.0.1',
  3. int port = 3000,
  4. int backlog = 0,
  5. bool shared = false,
  6. bool v6Only = false,
})

Starts a native Dart listener runtime for server.

Implementation

Future<Runtime> serve(
  Server server, {
  String host = '127.0.0.1',
  int port = 3000,
  int backlog = 0,
  bool shared = false,
  bool v6Only = false,
}) {
  return serveDartRuntime(
    server,
    host: host,
    port: port,
    backlog: backlog,
    shared: shared,
    v6Only: v6Only,
  );
}