hardlounge/client/js/socket-events/commands.js
2019-12-18 00:14:36 +02:00

9 lines
176 B
JavaScript

const constants = require("../constants");
import socket from "../socket";
socket.on("commands", function(commands) {
if (commands) {
constants.commands = commands;
}
});