Functional join command server side

This commit is contained in:
Logan Cusano
2024-02-11 02:45:40 -05:00
parent 93d6eecfbf
commit b78fa8307d
3 changed files with 117 additions and 22 deletions

View File

@@ -36,7 +36,7 @@ export const nodeLoginWrapper = async (data, socket) => {
// Add the socket/node connection
socket.node = node;
socket.id = node.nuid;
//socket.id = node.nuid;
return;
}
@@ -151,15 +151,13 @@ const getSocketIdByNuid = async (nuid) => {
const requestNodeJoinPreset = async () => {
export const requestNodeJoinSystem = async (socket, systemName, discordChanelId) => {
// Check for System updates
// Test commands
setTimeout(() => {
const joinData = {
'clientID': "MTE5NjAwNTM2ODYzNjExMjk3Nw.GuCMXg.24iNNofNNumq46FIj68zMe9RmQgugAgfrvelEA",
'channelID': "367396189529833476",
'preset': ""
}
sendNodeCommand(socket, "node-join", joinData);
}, 2500)
// Check for open client IDs
const joinData = {
'clientID': "MTE5NjAwNTM2ODYzNjExMjk3Nw.GuCMXg.24iNNofNNumq46FIj68zMe9RmQgugAgfrvelEA",
'channelID': discordChanelId,
'preset': systemName
}
sendNodeCommand(socket, "node-join", joinData);
}