hardlounge/client/js/socket-events/commands.js

9 lines
177 B
JavaScript

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