Web: Socket: Added window refs

This commit is contained in:
Alexey Safronov 2024-05-24 14:18:10 +04:00
parent abb0fa6520
commit c74d88608f
2 changed files with 6 additions and 3 deletions

View File

@ -887,6 +887,9 @@ class SettingsStore {
this.publicRoomKey,
"/files",
);
// TODO: comment this line
window.socketFilesClient = this.sockerFilesClient;
}
return this.sockerFilesClient;
@ -901,6 +904,9 @@ class SettingsStore {
this.publicRoomKey,
"/onlineusers",
);
// TODO: comment this line
window.socketUsersClient = this.socketUsersClient;
}
return this.socketUsersClient;

View File

@ -119,9 +119,6 @@ class SocketIOHelper {
console.log("socket connect error", err),
);
this.client.on("disconnect", () => console.log("socket is disconnected"));
// DEV tests
// window.socketHelper = this;
}
get isEnabled() {