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