mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
feat: adding ws client back
This commit is contained in:
@@ -16,6 +16,7 @@ import {
|
||||
Ludusavi,
|
||||
Lock,
|
||||
DeckyPlugin,
|
||||
WSClient,
|
||||
} from "@main/services";
|
||||
import { migrateDownloadSources } from "./helpers/migrate-download-sources";
|
||||
|
||||
@@ -56,7 +57,7 @@ export const loadState = async () => {
|
||||
|
||||
const { syncDownloadSourcesFromApi } = await import("./services/user");
|
||||
void syncDownloadSourcesFromApi();
|
||||
// WSClient.connect();
|
||||
WSClient.connect();
|
||||
});
|
||||
|
||||
const downloads = await downloadsSublevel
|
||||
|
||||
@@ -11,6 +11,7 @@ import { getUserData } from "./user/get-user-data";
|
||||
import { db } from "@main/level";
|
||||
import { levelKeys } from "@main/level/sublevels";
|
||||
import type { Auth, User } from "@types";
|
||||
import { WSClient } from "./ws";
|
||||
|
||||
export interface HydraApiOptions {
|
||||
needsAuth?: boolean;
|
||||
@@ -103,8 +104,8 @@ export class HydraApi {
|
||||
await clearGamesRemoteIds();
|
||||
uploadGamesBatch();
|
||||
|
||||
// WSClient.close();
|
||||
// WSClient.connect();
|
||||
WSClient.close();
|
||||
WSClient.connect();
|
||||
|
||||
const { syncDownloadSourcesFromApi } = await import("./user");
|
||||
syncDownloadSourcesFromApi();
|
||||
|
||||
Reference in New Issue
Block a user