serve function

Future<Runtime> serve(
  1. Server server, {
  2. String host = '127.0.0.1',
  3. int port = 3000,
})

Starts the Node runtime for server.

Implementation

Future<Runtime> serve(
  Server server, {
  String host = '127.0.0.1',
  int port = 3000,
}) {
  return serveNodeRuntime(server, host: host, port: port);
}