mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-17 08:47:49 +00:00
Migrate most of frontend callServerMethod usage over to websocket
This commit is contained in:
@@ -2,5 +2,11 @@
|
||||
(async () => {
|
||||
console.debug('Setting up decky-frontend-lib...');
|
||||
window.DFL = await import('decky-frontend-lib');
|
||||
console.debug('Authenticating to Decky backend...');
|
||||
window.deckyAuthToken = await fetch('http://127.0.0.1:1337/auth/token').then((r) => r.text());
|
||||
console.debug('Connecting to Decky backend...');
|
||||
window.DeckyBackend = new (await import('./wsrouter')).WSRouter();
|
||||
await window.DeckyBackend.connect();
|
||||
console.debug('Starting Decky!');
|
||||
await import('./start');
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user