mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 11:41:58 +00:00
Implement legacy & modern plugin method calls over WS
This version builds fine and runs all of the 14 plugins I have installed perfectly, so we're really close to having this done.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { sleep } from 'decky-frontend-lib';
|
||||
|
||||
import Logger from './logger';
|
||||
|
||||
declare global {
|
||||
@@ -161,6 +163,8 @@ export class WSRouter extends Logger {
|
||||
|
||||
async onError(error: any) {
|
||||
this.error('WS DISCONNECTED', error);
|
||||
// TODO queue up lost messages and send them once we connect again
|
||||
await sleep(5000);
|
||||
await this.connect();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user