diff options
| author | AAGaming <aagaming@riseup.net> | 2023-12-30 00:46:59 -0500 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2023-12-30 00:46:59 -0500 |
| commit | 6522ebf0cad1723a278144b6c5d8557cd47e52d6 (patch) | |
| tree | 8c048cfe75c73938d347f8e6cd7b8bb23269df2c /frontend/src/wsrouter.ts | |
| parent | 6042ca56b85fffe6bac4cac5a2965ee87c4e1e32 (diff) | |
| download | decky-loader-6522ebf0cad1723a278144b6c5d8557cd47e52d6.tar.gz decky-loader-6522ebf0cad1723a278144b6c5d8557cd47e52d6.zip | |
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.
Diffstat (limited to 'frontend/src/wsrouter.ts')
| -rw-r--r-- | frontend/src/wsrouter.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/frontend/src/wsrouter.ts b/frontend/src/wsrouter.ts index e1d766c3..d3bc45a0 100644 --- a/frontend/src/wsrouter.ts +++ b/frontend/src/wsrouter.ts @@ -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(); } } |
