Questions tagged [laravel-websockets]

190 questions
2
votes
1 answer

Websockets not working: Failed without error

I setup a websocket server in a laravel 8 project that is accessible from the internet. I then installed the laravel-websockets package 1.12 together with the pusherphpserver package 5.0. I have created an account on the Pusher's API website and…
m33ts4k0z
  • 645
  • 7
  • 26
2
votes
1 answer

Does using beyondcode/laravel-websockets need pusher APP/KEY?

To implement chat In Laravel 8/vue 2.6 I added beyondcode/laravel-websockets and reading some manuals I found that I need to use pusher packages, like laravel-echo and pusher-js not not pusher App API. So I tried to make as in .env…
mstdmstd
  • 2,195
  • 17
  • 63
  • 140
2
votes
0 answers

Laravel websocket and react native - ExceptionsManager.js:180 TypeError: Cannot read property 'presenceChannel' of undefined

I have developed a react app using laravel and react-js by laravel-websockets and it works well! However, when I want to use it in a react native application, It throws an exception: ExceptionsManager.js:180 TypeError: Cannot read property…
2
votes
0 answers

Unable to run Laravel Websockets on ssl(https) on Shared/VPS server

Unable to make it work on HTTPS it is perfectly working on HTTP. Almost tried every other question but I am not sure if my code is able to read the SSL certificate how can I be sure that certificate is accessible WebSockets or not This is my ENV…
2
votes
0 answers

Requesting Help: Laravel Websockets Not Working With SSL Certificate

Overview This is my first time working with websockets. The project I'm working in is using the Laravel framework, so I chose to give Laravel Websockets (version 1.3.0) a try. I set up a simple proof-of-concept project using this package, and in…
2
votes
0 answers

Unable to deploy Laravel Websockets in AWS Elastic Beanstalk

I have a small Laravel app that is deployed on AWS elastic beanstalk. My front-end connects with my backend using Laravel WebSocket by the BeyondCode lib. I've tested everything in localhost and everything is working fine but not for Elastic…
2
votes
0 answers

Laravel socket live chat without a broadcast event

I use Laravel websockets and Echo to create a simpel live chat. But there is something I don't understand. I have 2 servers: Laravel application with Laravel Echo (the chat frontend) Laravel server with Laravel websocket installed. When a user…
Merijndk
  • 1,674
  • 3
  • 18
  • 35
2
votes
1 answer

Laravel websockets not showing realtime stats on localhost

I'm trying to set up Laravel web sockets on my localhost but I'm having trouble getting the Real time statistics on the dashboard working. In my config/broadcasting.php I have updated the pusher array according to the Laravel websockets…
user3714932
  • 1,253
  • 2
  • 16
  • 29
2
votes
0 answers

Laravel websockets server detects events alternatively

Using laravel-websockets package and a very strange thing is happening. I could say all is working but the websockets server seems to receive events one yes one not. I connect via wss and works fine. config/broadcasting:
Jaime
  • 328
  • 1
  • 6
  • 19
2
votes
1 answer

run php artisan websockets:serve automatically without supervisor

i have a laravel project with beyondcode/laravel-websockets package. Everytime i want to run the websockets, i need to run: php artisan websockets:serve I can't do this for producction. I don't have access to the apache production server, so i can't…
mbg
  • 53
  • 1
  • 11
2
votes
3 answers

Laravel broadcastOn() method in event never fires

I am new to laravel and to websockets. I have got my websockets working on the laravel-websockets dashboard, and now am trying to trigger a websocket event with this javascript command: axios.post('updatequeue', {queue_position: newPos}); newPos…
btanner
  • 73
  • 1
  • 5
2
votes
0 answers

Laravel WebSockets Custom Handler class does not work when APP_DEBUG=false is in the .evn file

In my Laravel project I have implemented Laravel WebSockets following this article: https://freek.dev/1228-introducing-laravel-websockets-an-easy-to-use-websocket-server-implemented-in-php I have implemented MyCustomWebSocketHandler class and…
O Connor
  • 4,236
  • 15
  • 50
  • 91
2
votes
2 answers

Laravel Echo Not Listening To Event

I have successfully configured laravel-websockets with laravel-echo. I have been able to start the server with the command php artisan websocket:serve. My app is able to connect and authenticate from the browser however broadcast events are not…
user3718908x100
  • 7,939
  • 15
  • 64
  • 123
1
vote
0 answers

Laravel websockets current state is unavailable

It's my first post on here but i'm desperate on finding the solution and I might need someone a little more experienced than me. Let you first give you the system specifics: OS: Almalinux, CPanel & WHM - VPS Framework: Laravel Composer: "php":…
1
vote
1 answer

Laravel WebSocket get SSL error message though Pusher

I'm using Websocket with SSL but if SSL has any issue I'm not able to findout out the exact issue. After Investigation "SecureServer.php" has a code which are emit the error but that error is not getting through pusher. This is the code in…
Kailas
  • 3,173
  • 5
  • 42
  • 52
1 2
3
12 13