This commit is contained in:
2024-04-21 15:11:59 +03:00
parent 38537e3a63
commit 60a70baa48
3 changed files with 58 additions and 0 deletions

15
arrpc/async.patch Normal file
View File

@ -0,0 +1,15 @@
--- index.js 2023-03-10 18:32:51.934337975 -0500
+++ index.js 2023-03-10 18:34:27.619332243 -0500
@@ -6,6 +6,9 @@
import * as Bridge from './bridge.js';
import Server from './server.js';
-const server = await new Server();
+async function main() {
+ const server = await new Server();
+ server.on('activity', data => Bridge.send(data));
+}
-server.on('activity', data => Bridge.send(data));
\ No newline at end of file
+main();