hardlounge/client/js/socket-events/commands.js
2019-07-02 17:02:05 +01:00

9 lines
181 B
JavaScript

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