                setupSocket();
                }, 100 * conCon);
            };
            socketserver.onopen = function() {
                conCon = 1;
                socketserver.send(JSON.stringify({"join": roomID, "out": 5, "in": 6}));
            };
            socketserver.addEventListener('message', function(event) {
                var resp = false;
                if (event.data) {
                    try {
                        var data = JSON.parse(event.data);
                  