diff options
author | Jakob Stendahl <jakobste@uio.no> | 2021-10-21 19:28:20 +0200 |
---|---|---|
committer | Jakob Stendahl <jakobste@uio.no> | 2021-10-21 19:28:20 +0200 |
commit | 6e53fd0dfd830d6d96206419c530c71fa4b3f4e6 (patch) | |
tree | 9034a4c9adf3a41c6eb492f2fe6ac06e434275dd /src/SocketIO/index.js | |
parent | f243dc8d7527cde3d5b5a4f6e659cf7604f5ae2a (diff) | |
download | Luxcena-Neo-6e53fd0dfd830d6d96206419c530c71fa4b3f4e6.tar.gz Luxcena-Neo-6e53fd0dfd830d6d96206419c530c71fa4b3f4e6.zip |
:sparkles: Add attempt at the "simulation"
Diffstat (limited to 'src/SocketIO/index.js')
-rw-r--r-- | src/SocketIO/index.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/SocketIO/index.js b/src/SocketIO/index.js index da140bb..88b5459 100644 --- a/src/SocketIO/index.js +++ b/src/SocketIO/index.js @@ -310,6 +310,11 @@ function createAuthorizedNamespace(io) { logger.info("Stopped debugger"); }); + /* Matrix and strip buffer */ + socket.on("matrix:get", () => { + socket.emit("matrix", neoModules.neoRuntimeManager.matrix); + }); + socket.on("disconnect", () => { logger.access(`SOCKET:authed Client (${socket.id}@${socket.handshake.headers.host}) disconnected.`); if (debuggerOpen) { @@ -319,6 +324,12 @@ function createAuthorizedNamespace(io) { }); }); + neoModules.neoRuntimeManager.event.on("matrix", (matrix) => { + authorizedNamespace.emit("matrix", matrix); + }); + neoModules.neoRuntimeManager.event.on("strip_buffer", (strip_buffer) => { + authorizedNamespace.emit("strip_buffer", strip_buffer); + }); neoModules.selfUpdater.updater.event.on("step", (step) => { authorizedNamespace.emit("updater:step", step); }); |