HttpApiServer constructor
HttpApiServer({
- required OmnyServerHub hub,
- String? apiToken,
- EventAggregator? events,
- HubMetrics? metrics,
- Object host = '0.0.0.0',
- int port = 8080,
- SecurityContext? securityContext,
- 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),
});