Giter Site home page Giter Site logo

Pusher error about voten HOT 5 CLOSED

voten-co avatar voten-co commented on May 19, 2024
Pusher error

from voten.

Comments (5)

saleh-old avatar saleh-old commented on May 19, 2024 1

Turns out there was another file(config/broadcasting.php) that needed to be manually edited. I pushed an update, removing the need for manual editions. Just pull latest code, enter only .env values and you're good to go. (notice a PUSHER_CLUSTER key has been added to .env.example).

P.S: in case you're going to broadcast notifications, you should also edit this file as I explained. See if your can find a fix for it (so the manual edit wouldn't be needed) and let me know of it. thanks

from voten.

saleh-old avatar saleh-old commented on May 19, 2024

You must enter pusher info in both .env file and bootstrap.js (I should later refactor it so .env would be enough). Have you done this?

from voten.

folkevil avatar folkevil commented on May 19, 2024

Yes, I did it already but still got that error.

from voten.

saleh-old avatar saleh-old commented on May 19, 2024

Please leave me the info your .env and bootstrap.js files. (the pusher sections)

from voten.

folkevil avatar folkevil commented on May 19, 2024

.env

PUSHER_APP_ID=367728
PUSHER_KEY=06c41f61970777fdxxxx
PUSHER_SECRET=6a8493659157863xxxx
PUSHER_CLUSTER=us2

and bootstrap.js


if (Laravel.env == 'local') {
	window.Echo = new Echo({
	    broadcaster: 'pusher',
	    key: '06c41f61970777fdxxxx',
	    cluster: 'us2'
	});
} else if (Laravel.env == 'production') {
    window.Echo = new Echo({
        broadcaster: 'pusher',
        key: '2801f0d58cd36d94xxxx',
        cluster: 'us2'
    });
} else {
	window.Echo = new Echo({
	    broadcaster: 'socket.io',
	    host: 'https://echo.voten.dev:6001',
	    auth:
	    {
	        headers:
	        {
	            'Authorization': 'Bearer ' + 'nb35mdq2ca9928qgl4sgjf3imil5811sn41qsmcaph0p3h6sa5ht8hoktdeg'
	        }
	    }
	});
}

from voten.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.