aboutsummaryrefslogtreecommitdiff
path: root/src/SocketIO
diff options
context:
space:
mode:
authorJakob Stendahl <jakobste@uio.no>2021-10-21 19:28:20 +0200
committerJakob Stendahl <jakobste@uio.no>2021-10-21 19:28:20 +0200
commit6e53fd0dfd830d6d96206419c530c71fa4b3f4e6 (patch)
tree9034a4c9adf3a41c6eb492f2fe6ac06e434275dd /src/SocketIO
parentf243dc8d7527cde3d5b5a4f6e659cf7604f5ae2a (diff)
downloadLuxcena-Neo-6e53fd0dfd830d6d96206419c530c71fa4b3f4e6.tar.gz
Luxcena-Neo-6e53fd0dfd830d6d96206419c530c71fa4b3f4e6.zip
:sparkles: Add attempt at the "simulation"
Diffstat (limited to 'src/SocketIO')
-rw-r--r--src/SocketIO/index.js11
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);
});