GithubHelp home page GithubHelp logo

Comments (7)

JulianMined avatar JulianMined commented on July 20, 2024 5

My server console shows

(Error): 404

{ url: 'http://homestead.app/broadcasting/auth',
form: { channel_name: 'private-chat.1' },
headers: { 'X-CSRF-TOKEN': 'viOhMUN9kuKi3o7I8VumOHmwN6fClyx6TJ0BBcnz' } }

Sorry, i forgot to add "App\Providers\BroadcastServiceProvider::class" to my config/app.php Providers.
This solved my Problem.

from laravel-echo-server.

tlaverdure avatar tlaverdure commented on July 20, 2024

Are you using the private() method?

https://laravel.com/docs/5.3/broadcasting#listening-for-events

from laravel-echo-server.

MadScripter avatar MadScripter commented on July 20, 2024

Yes I am.

from laravel-echo-server.

tlaverdure avatar tlaverdure commented on July 20, 2024

@MadScripter are you setting up your broadcasting authentication properly in Laravel? The event will be emitted in the Redis console, but you won't be able to listen if you aren't properly authenticated to the private channel.

from laravel-echo-server.

MadScripter avatar MadScripter commented on July 20, 2024

Yes I doubled checked everything and it should all be setup correctly. The NodeJS server throws a 302 error everytime I try to broadcast to the private channel :/ The host and the authPath are correct in the options, I even tried to reinstall laravel, but nothing works..

from laravel-echo-server.

jonnywilliamson avatar jonnywilliamson commented on July 20, 2024

I know this doesn't help you @MadScripter but I definitely have private channels working using this script, a laravel 5.3 installation and node 5 (see my other comments about this).

There's obviously just some very small detail that needs to be tweaked.

from laravel-echo-server.

tlaverdure avatar tlaverdure commented on July 20, 2024

1.0 is now released, please test that version and if this issue exists reopen. Thanks

from laravel-echo-server.

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.