2020-09-28 18:52:54 +02:00
|
|
|
import { App as _App, AppOptions } from 'uWebSockets.js';
|
|
|
|
import BaseApp from './baseapp';
|
|
|
|
import { extend } from './utils';
|
|
|
|
import { UwsApp } from './types';
|
|
|
|
|
|
|
|
class App extends (<UwsApp>_App) {
|
|
|
|
constructor(options: AppOptions = {}) {
|
2020-09-29 16:12:17 +02:00
|
|
|
super(options); // eslint-disable-line constructor-super
|
2020-09-28 18:52:54 +02:00
|
|
|
extend(this, new BaseApp());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|