Questions tagged [laravel-websockets]
190 questions
0
votes
2 answers
Broadcasted Laravel notification is not shown in real-time on frontend, but is sent over Pusher and shown in console
I've been trying to receive notifications in real-time, such as in this video: https://www.youtube.com/watch?v=i6Rdkv-DLwk&t=1081s by using Pusher - The app is connected to pusher, I receive the notifications events in real-time with Pusher over the…

Vladimir B.
- 304
- 2
- 16
0
votes
1 answer
How to implement websockets in a laravel API
I have been trying to implement websockets in a laravel 8 API but all in vain. I have tried using this package but whenever i try to connect , it returns a 404 not found.
I am wondering if there is a specific way of building and testing the…

kamasuPaul
- 173
- 1
- 9
0
votes
1 answer
Websocket not connecting - Docker
I have Laravel running in a Docker environment with the packages mysql,nginx and php-fpm.
I use it as an API.
I want to add the websocket, the server is started via php artisan websocket:serve using supervisor.
I can't connect to the statistic…

Mohamed Ali Nakouri
- 145
- 1
- 9
0
votes
1 answer
Cannot get a connection with Laravel Websockets running on EC2
I have no doubt the comments here does not work. By the looks of things, it should. No matter what I've done, I'm getting 502. My setup is a bit different:
We have an ec2 with AWS. We have a private IP (10.0.0.1) and a public IP (52.0.0.1). After…

Sylar
- 11,422
- 25
- 93
- 166
0
votes
0 answers
[Vue warn]: Error in render: "TypeError: visitor.messages is undefined"
I have a parent table in laravel, I am able to access the data of its child in vuejs i.e
the parent table visits and its child is messages so to access the messages for each visit, first I am looping through the visits and each visit accessing the…

Nelson Sammy
- 404
- 2
- 7
- 16
0
votes
1 answer
How to configure laravel-websockets package to work with Laravel app served from subdirectory, i.e. https://laravel-apps.test/app1?
I have server where I serve Laravel app from sub-directory like https://laravel-apps.test/app1. It throws this error WebSocket connection to 'wss://laravel-apps.test:6001/app/Kfjaina1m7?protocol=7&client=js&version=7.0.3&flash=false' failed:.
It…
0
votes
0 answers
Laravel CORSAccess to XMLHttpRequest at https://sockjs.pusher.com/pusher/app/AB/13/heelec9r/xhr_streaming?protocol=7&client=js&version=7.0.3&t=162&n=6
Please help .. I'm using laravel websocket (https://beyondco.de/docs/laravel-websockets/getting-started/introduction) for realtime chat .. it's working on my local machine .. but when I deploy to the server .. this is the error say:…

Sam N Den
- 57
- 6
- 13
0
votes
0 answers
pusher or websockets always says 403 forbidden
i'm new to websockets and pusher i did follow the documentation and this tuto https://www.youtube.com/watch?v=7MvN0w5BW48 but i got this error that says Unable to retrieve auth string from auth endpoint - received status: 403 from…

Belhaj-rbg
- 23
- 4
0
votes
1 answer
Laravel-websockets not working on VPS server with plesk through nginx
I am using the laravel-websockets and pusher packages to run a simple chat feature inside my application. I managed to make it work locally using the ssl certificates of the valet dev environment. Right now, I am in the final phase of development, I…

George2ps
- 5
- 4
0
votes
0 answers
My websocket has two connections, one with ?sid params keeps failing, retry won't work either, but sometimes it works
My App uses socket.io package + laravel-echo package, and when it connects, it makes two requests like this screenshot.
One request without sid parameter is fine, and my app can work normally.
However, the one with sid parameter request keeps…

Joseph
- 3,974
- 7
- 34
- 67
0
votes
1 answer
Laravel echo/pusher not sending ping when receiving data
I'm running a laravel websocket and have a connection over wss.
I am running commands on the server, and the commands are logged in a file. Each line is also sent over a websocket to the front-end so I can view it. Each laravel-command has it's own…

Techno
- 1,668
- 1
- 9
- 19
0
votes
1 answer
Running Websocket on remote server
I Have a problem with laravel websockets .
I'm trying to run websocket server using Artisan call like this :
Artisan::call('websockets:serve');
but it didn't work (returned request timeout) knowing that it works correctly when i run :
php artisan…

Ali Suliman
- 45
- 4
0
votes
1 answer
Docker Laravel Websockets - Connection closed before receiving a handshake response
I have a Docker environment running Laravel and I want to get laravel-websockets working.
When I visit here:
http://localhost:8000/laravel-websockets
I get the following error:
Dev tools gives me the following:
WebSocket connection to…

Lee
- 1,485
- 2
- 24
- 44
0
votes
0 answers
Laravel Event not shown on Websockets Dashboard
I was trying to catch a fired event on my Web sockets Dashboard but my event is returning [NULL] when fired.
Please note that it is only happening in my existing project. I tried doing the same on a fresh Laravel project and it is working just fine.…

Chris
- 3
- 1
0
votes
1 answer
Laravel (Echo, Sanctum, websockets) + Pusher + Nuxtjs SPA
I'm trying to send events to private channel, but I can't receive them.
Otherwise it works fine for public channels.
Here's my code :
Plugin : Echo.js
window.Echo = new Echo({
broadcaster: 'pusher',
key:…

BKF
- 1,298
- 4
- 16
- 35