Questions tagged [laravel-echo]
Use for problems with laravel-echo, the official laravel WebSocket implementation.
laravel-echo
598
questions
0
votes
1
answer
26
views
Why am I getting a 401 Unauthorized on Laravel Echo's authentication to a Private Channel?
I'm building a template project for myself, and I've got Reverb and Echo working as intended with regular channels, but when using private channels, the /broadcasting/auth route returns a 401 ...
0
votes
0
answers
32
views
Events are not being broadcasted as expected
My event broadcast is not working and I can't find out why.
Providing all relevant files and config here.
Processes running:
php artisan websockets:serve
php artisan queue:work
My .env relevant ...
0
votes
0
answers
36
views
Trying to understand authentication with laravel-echo #27771
What I want to solve
I want to implement Laravel-Echo to my Nuxt3 Application. As Laravel is my backend, I am using Sanctum as auth provider.
What my attempt looks like
I am using nuxt-auth-sanctum, ...
0
votes
1
answer
154
views
Laravel 11 reverb connection using rest api and custom auth giving 403 forbidden
I am using laravel 11 in my web application. I am trying to implement reverb connection between my laravel 11 and react front end using rest api. The websocket connection seems established but the ...
0
votes
0
answers
75
views
Laravel Echo Pusher [message":"Auth info required to subscribe to private-App.Models.PharmacyUser.1"]
I'm using Laravel and Pusher to create an api for a mobile app, using broadcasting with pusher:
class BroadcastServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application ...
0
votes
0
answers
41
views
Laravel Echo & Pusher status code 200 but frontend no notification
I’m trying to broadcast notifications via a private channel to my web application for users who are logged in. Here’s what I’ve done so far:
I set up Laravel Echo and Pusher.
When I test with php ...
0
votes
1
answer
54
views
Laravel websocket with beyondcode library and laravel echo event is not firing or echo is not listening the event
i am working with laravel 8 and beyondcode library to work with laravel websocket and realtime chat when i am triggering an event with tinker or controller my laravel echo in the frontend not getting ...
0
votes
0
answers
131
views
NextJS not listening Events on Laravel Echo
I created an api in Laravel and a front end in NextJS, in Laravel 11 I am using reverb as the documentation says:
https://laravel.com/docs/11.x/reverb#main-content
I'm using Horizon to manage my ...
0
votes
1
answer
97
views
Laravel Echo Auth Request Not Sending Cookie in Headers
My client side laravel-echo is not sending cookie param in headers, braodcasting/auth requires a cookie in headers to authorize websocket connection, when I try sending the same request with fetch it ...
1
vote
0
answers
92
views
Laravel Echo: Exposing Websocket Keys on the Client-Side
This is my first time posting here, so I apologize if my formatting isn't quite right.
I'm currently working with Laravel Echo to enable real-time event listening on the frontend of my application. ...
0
votes
0
answers
127
views
Webscoket in angular 17
Help, I don't know how to use websocket in angular 17
I try with socket.io and pusher, but my proyect didn´t work
I look in a lot of pages but no one works. I did the api and the websocket conection ...
0
votes
1
answer
99
views
Laravel Echo not receiving data from Pusher events in React JS APP
I would like to track the changes in the column "status" in my database in real-time in my react-js app, so I created a Laravel job to update the column. So I created an event that will be ...
3
votes
2
answers
2k
views
Laravel 10 with reverb connection failed
I have laravel reverb working well in development, but can't get it to work in production. I always get the error in the console that websocket connection to 'my domain' failed
In my .env:
...
0
votes
0
answers
79
views
Listening to user disconnect events with Soketi WebSocket
I am utilizing a NextJS front-end and a Laravel back-end, with Soketi managing the WebSocket server. From my front end, using Laravel Echo, I can listen to connection events from the WebSocket server.
...
0
votes
1
answer
219
views
Laravel Livewire 3 unmount hook/lifecycle
I am wondering if there is any mechanism or hook which would fire when a component unmounts. I looked through both v2 and v3 docs and I couldn't find something like that.
Use case: I am looking to ...