module.exports = function(wss) {
db.serialize(function() {
db.all("SELECT * FROM Variants", (err,variants) => {
let clients = { "index": {} };
let games = {}; //pending games (player sid)
for (const v of variants)
module.exports = function(wss) {
db.serialize(function() {
db.all("SELECT * FROM Variants", (err,variants) => {
let clients = { "index": {} };
let games = {}; //pending games (player sid)
for (const v of variants)