nopaque/app/static/js/app.js
2024-12-05 14:26:05 +01:00

21 lines
499 B
JavaScript

nopaque.App = class App {
constructor() {
this.socket = io({transports: ['websocket'], upgrade: false});
// Endpoints
this.users = new nopaque.app.endpoints.Users(this);
// Extensions
this.toaster = new nopaque.app.extensions.Toaster(this);
this.ui = new nopaque.app.extensions.UI(this);
this.userHub = new nopaque.app.extensions.UserHub(this);
}
init() {
// Initialize extensions
this.toaster.init();
this.ui.init();
this.userHub.init();
}
};