ServerIO constructor

ServerIO({
  1. Map? options,
})

Implementation

ServerIO({Map? options}) {
  options ??= {};
  path(options.containsKey('path') ? options['path'] : '/socket.io');
  serveClient(false != options['serveClient']);
  adapter = options.containsKey('adapter') ? options['adapter'] : 'default';
  origins(options.containsKey('origins') ? options['origins'] : '*:*');
  sockets = of('/');
  _ready = Future.value(true);
}