BaseWebSocketAckableServer<C extends WebSocketAckableClient, T extends AckableRoom<C>> constructor

BaseWebSocketAckableServer<C extends WebSocketAckableClient, T extends AckableRoom<C>>(
  1. String name, {
  2. Object? host,
  3. int? port = 8080,
})

name is used to identify the server. host is the IP or the InternetAddress to bind the server. port is the port to bind the host.

To start the server, please use start.

Implementation

BaseWebSocketAckableServer(String name, {Object? host,
  this.port = 8080}) : super(name) {
  _host = host ?? InternetAddress.anyIPv4;
  _ctrlClient = controller();
}