9 lines
177 B
JavaScript
9 lines
177 B
JavaScript
|
const constants = require("../constants");
|
||
|
import socket from "../socket";
|
||
|
|
||
|
socket.on("commands", function (commands) {
|
||
|
if (commands) {
|
||
|
constants.commands = commands;
|
||
|
}
|
||
|
});
|