DEV Community

Discussion on: Build a Scalable Video Chat App with Agora in Django

Collapse
 
naeem23 profile image
Nae'3m

I have downloaded your repository and set up the virtual environment. After that I changed .env file with my credentials and also changed the index.html page pusher key. Unfortunately I am still getting offline. here is my pusher's data:
app_id = "1251606"
key = "4ad850a59d4a4ddaff01"
secret = "a9c40019b5f9c3003e99"
cluster = "ap2"
I have read your comments but couldn't find a solution. Please help me to figure it out.

Collapse
 
mupati profile image
Kofi Mupati

pass the pusher cluster into the Pusher instance and let me know if it works.

      window.pusher = new Pusher("420e941c25574fda6378", {
        cluster: "APP_CLUSTER",
        authEndpoint: "{% url 'agora-pusher-auth' %}",
        auth: {
          headers: {
            "X-CSRFToken": "{{ csrf_token }}",
          },
        },
      });
Enter fullscreen mode Exit fullscreen mode