HttpApiServer constructor

HttpApiServer({
  1. required OmnyServerHub hub,
  2. String? apiToken,
  3. EventAggregator? events,
  4. HubMetrics? metrics,
  5. Object host = '0.0.0.0',
  6. int port = 8080,
  7. SecurityContext? securityContext,
  8. Duration eventKeepAlive = const Duration(seconds: 15),
})

Creates an API server.

Implementation

HttpApiServer({
  required this.hub,
  this.apiToken,
  this.events,
  this.metrics,
  this.host = '0.0.0.0',
  this.port = 8080,
  this.securityContext,
  this.eventKeepAlive = const Duration(seconds: 15),
});