Migrating to uWS
This commit is contained in:
parent
783d58d3cb
commit
6a4c0c8678
31 changed files with 2056 additions and 1123 deletions
13
back/src/Server/server/app.ts
Normal file
13
back/src/Server/server/app.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
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 = {}) {
|
||||
super(options);
|
||||
extend(this, new BaseApp());
|
||||
}
|
||||
}
|
||||
|
||||
export default App;
|
Loading…
Add table
Add a link
Reference in a new issue