nopaque/app/static/js/app.js

21 lines
499 B
JavaScript
Raw Normal View History

2023-10-30 10:36:28 +00:00
nopaque.App = class App {
2021-11-30 15:22:16 +00:00
constructor() {
2024-11-18 11:36:37 +00:00
this.socket = io({transports: ['websocket'], upgrade: false});
2024-12-05 13:26:05 +00:00
// Endpoints
this.users = new nopaque.app.endpoints.Users(this);
2024-12-02 08:34:17 +00:00
2024-12-05 13:26:05 +00:00
// 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() {
2024-12-05 13:26:05 +00:00
// Initialize extensions
this.toaster.init();
2024-12-02 08:34:17 +00:00
this.ui.init();
2024-12-05 13:26:05 +00:00
this.userHub.init();
}
2023-10-12 12:13:47 +00:00
};