|
@@ -189,7 +189,9 @@ export default class SocketHandler {
|
|
|
return this.socket.send(JSON.stringify([...args]));
|
|
|
}
|
|
|
|
|
|
- dispatchAsync(...args: [string, ...any]) {
|
|
|
+ dispatchAsync(
|
|
|
+ ...args: [string, ...any]
|
|
|
+ ): Promise<{ res: any; extraRes: any[] }> {
|
|
|
return new Promise(resolve => {
|
|
|
this.dispatch(...args, (res, ...extraRes) => {
|
|
|
resolve({
|