Questions tagged [laravel-websockets]
190 questions
25
votes
14 answers
Unable to locate publishable resources
I have tried tried to publish this package using
php artisan vendor:publish --provider="BeyondCode\LaravelWebSockets\WebSocketsServiceProvider" --tag="migrations"
but I am getting
Unable to locate publishable resources
publishing complete
I dont…

digitcores
- 293
- 1
- 3
- 7
11
votes
4 answers
How to send message back from client to the server via WebSocket in Laravel with Laravel WebSockets?
WebSocket allows two-way communication: the server can send messages to the browser and the browser - the client - can respond back via the same connection.
I am implementing Chat Application in Laravel 6 using:
Laravel Echo JavaScript Package…

O Connor
- 4,236
- 15
- 50
- 91
7
votes
6 answers
Laravel Echo is not listening
I set up an event and new channel :
class TaskCreated implements shouldBroadcast
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $task;
public function __construct(Task $task)
{
$this->task = $task;
}
}
and installed Echo…

AlmoDev
- 969
- 2
- 18
- 46
6
votes
1 answer
Laravel Echo tries to connect wss instead ws
I'm using replacement of Pusher Laravel Webaockets package.
In my application Laravel Echo tries to connect vía wss instead ws, so it fails.
My resources/js/bootstrap.js:
import Echo from 'laravel-echo'
window.Pusher =…

Jaime
- 328
- 1
- 6
- 19
6
votes
3 answers
Laravel websocket cant connect to pusher ERR_CERT_AUTHORITY_INVALID
I have a laravel application with websockets. I already setup all the needs for the websocket and pusher config. But whenever I test my broadcast channel I got
app.js:58283 WebSocket connection to…

draw134
- 1,053
- 4
- 35
- 84
5
votes
0 answers
Laravel GraphQl getting Could not connect to websocket endpoint error
After implementing a simple GraphQl query such as a simple Mutation and Subscription I get this error when I try to run this subscription into graphql-playground:
subscription {
userCreated{
name
username
password
}
}
I get…

DolDurma
- 15,753
- 51
- 198
- 377
5
votes
0 answers
Flutter + Laravel Websocket + Pusher Replacement (Valet Secure)
I'm using Beyondco Larevel Websockets on my Laravel Backend, and using pusher_client and laravel_echo on my Flutter frontend.
I've been trying to connect from my ios simulator into my Laravel Backend host, which is using valet secure, but…

Lambasoft
- 909
- 2
- 14
- 33
5
votes
0 answers
Laravel-websockets with ssl and nginx
I have been trying to get laravel-websockets work on my website with ssl on nginx on my server. I have been using laravel with echo. It works perfectly on my local computer.
This is the error i have been getting in the console
WebSocket connection…

Arpit
- 53
- 4
5
votes
1 answer
beyondcode laravel-websocket not connecting on server
I am trying to build a chat app and for that using beyondcode/laravel-websockets. When I used it in local it was working great but on the server can not make it run.
My Configurations are as follows
My Echo Settings (Js/Bootstrap.js)
window.Echo =…

Maaz Khan
- 131
- 1
- 9
4
votes
2 answers
Forward wss://sub.domain.com to ws://127.0.0.1:6001
I'm trying to setup Apache 2.4 (On Virtualmin) to forward wss://sub.domain.com requests to ws://localhost:6001 and I'm not having luck. I've followed countless tutorials, and looked through plenty of Stackoverflow questions - and I'm still…

Jon
- 305
- 3
- 20
- 45
4
votes
0 answers
How to connect to laravel soketi from other client except laravel-echo?
I am using laravel soketi package. And I dont want to use laravel-echo for client connection. So, I am testing with firecamp. But not able to connect.
Soketi is up and running with
Server is up and running!
The Websockets server is available…

amit
- 353
- 1
- 3
- 19
4
votes
1 answer
Channels current state is unavailable in Laravel WebSockets on production(Ubuntu 20.04.4)
I am trying to setup websockets on larvel-9.0 project. when I try to open /laravel-websockets I am getting the following error in console.
project is setup on Ubuntu 20.04.4.
pusher.min.js:8 WebSocket connection…

asimdev
- 705
- 1
- 8
- 22
4
votes
1 answer
Laravel broadcast with Pusher and laravel-websockets not sending message
This is a setup with Laravel 7, following the install guide for using the pusher driver with laravel-websockets rather than Pusher.
The 'php artisan websockets:serve' is running, and has connected to the Echo client in the browser and is happily…

Dan
- 1,249
- 2
- 16
- 31
4
votes
2 answers
Laravel Websockets Apache2 ReverseProxy setup
Problem
I am trying to setup a live environment with laravel websockets library behind an apache server.
The Websocket server is running on port 6001 (unreachable from outside).
The Apache VHost is configured for ws.example.com
I cannot get the…

polyamid23
- 41
- 1
- 2
4
votes
1 answer
how to use CloudFlare SSL in Laravel-websockets
my project hosted in digitalocean and I have connected domain to server using cloudflare.
I using SSL. But WSS connection does not work. I got this error message
WebSocket connection to…

John Doe
- 85
- 1
- 8