createServer static method

Future<PoloServer> createServer({
  1. String address = "127.0.0.1",
  2. int port = 3000,
})

Creates a Standalone PoloServer

Implementation

static Future<PoloServer> createServer(
    {String address = "127.0.0.1", int port = 3000}) async {
  final httpServer = (await HttpServer.bind(address, port));
  return PoloServer._fromServer(httpServer);
}