All Questions
484
questions
31
votes
2
answers
17k
views
Why do we need products like Pusher and Socket.io to establish a websocket connection?
I've been reading about websockets and SaaS like Pusher and Socket.io recently, while working on my Laravel chat practice application. What I don't understand is, why do we need external software to ...
16
votes
2
answers
4k
views
Using laravel websockets package in docker environment
Use case n° 1:
steps
installing the package in the same container of the laravel project
configuring the pusher settings in .env & boradcasting.php like so
PUSHER_APP_ID=123456789
...
12
votes
3
answers
8k
views
Laravel Pusher Websocket Not Working on HTTPS
I'm using Laravel 5.8, and we're using a web socket with PUSHER in our application. It's broadcast perfectly locally or when I am on HTTP mode. When I update my set up to HTTPS, Broadcasting is no ...
11
votes
6
answers
16k
views
Laravel beyondcode websockets do not connect
I'm using this Laravel websockets package to have my own websocket server.
As mentioned in package documentation, I have this configuration:
.env setting:
PUSHER_APP_ID=761772
PUSHER_APP_KEY=qwerty
...
11
votes
4
answers
11k
views
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 ...
9
votes
7
answers
31k
views
Beyondcode Laravel Websockets : failed: WebSocket is closed before the connection is established
Local websockets is running like a charm but on production I keep getting the error in the title.
Some background information I'm using the websocket package: beyondcode/laravel-websockets. I'm ...
8
votes
5
answers
17k
views
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 '...
8
votes
1
answer
1k
views
Laravel Events Dynamic Channel Name
I am creating a real-time notifications feature within my app that will use Pusher to automatically notify the user when they get a notification (which is created by certain actions taken by users ...
7
votes
2
answers
9k
views
How to connect to Laravel Websocket with React?
I'm building an ordering app, where I do the backend with Laravel and the front end with both ReactJS and React Native
I want real-time updates whenever a customer posts an order and whenever an order ...
7
votes
1
answer
1k
views
How to guard private channels when using socket.io and Laravel Echo?
Here is my server.js file:
var app = require('express')();
var http = require('http').Server(app);
var io = require('socket.io')(http);
var Redis = require('ioredis');
var redis = new Redis();
http....
6
votes
2
answers
8k
views
Is there any Alternative of SignalR ASP.NET in php (specifically Laravel)
I am working on an api based on laravel version 5.3.
It's going to be like Telegram api that can respond to various clients that written with android, iOS or web version(angularjs).
One thing that ...
6
votes
1
answer
2k
views
creating a real time application in laravel without nodejs
I am using a shared hosting in which i can't use node js.
But I want to create a real time application using laravel as per there https://laravel.com/docs/5.3/broadcasting doc they provide drivers ...
6
votes
1
answer
2k
views
Illuminate \ Broadcasting \ BroadcastException No message
I'm using Laravel websocket written by beyoundcode.
After couple of days, I've connected to myDomain.com/laravel-websockets and first step solved.
But now, when I trigger an event, laravel has error ...
6
votes
3
answers
2k
views
Laravel beyondcode websockets - doesn't work if verify_peer is true
I'm using the package beyondcode/laravel-websockets.
My problem here is when I set the 'verify_peer' => true the websocket is not working, but when the value is false it is working. Is there anyone ...
5
votes
3
answers
7k
views
Laravel Pusher array_merge: Expected parameter 2 to be an array, null given
i'm following a tutorial from pusher to display notification on the website. Everything has been in line with the tutorial, however this particular error showed up when i try to access the ...