shift not unshift

This commit is contained in:
Lamp 2018-09-03 23:37:35 -07:00 committed by GitHub
parent 3aba56dc64
commit d0b29a5193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -152,7 +152,7 @@ global.createMPPbridge = function createMPPbridge(room, DiscordChannelID, site =
msgQueue.push(str);
});
setInterval(()=>{
gClient.sendArray([{m:'a', message: msgQueue.unshift()}]);
gClient.sendArray([{m:'a', message: msgQueue.shift()}]);
}, 1600); // just about fastest without exceeding quota; I figured quota is 4 messages per 6 seconds in lobbies
}