mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-27 03:44:19 +00:00
21 lines
499 B
JavaScript
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();
|
|
}
|
|
};
|