et.disconnect();
    });

{% if room -%}
    socket.on('connect', function () {
            socket.emit('join', {'room': '{{room}}'});
        });
{% endif -%}


socket.on('reconnect', function () {
    });

socket.on('reconnecting', function () {
    });

socket.on('error', function (error) {
    });

</script>

