All Questions
21
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 ...
2
votes
2
answers
1k
views
Bidirectional WebSockets in laravel?
Anyone here familiar with bi-directional WebSockets in laravel?
Please note I am not talking about pusher+echo. pusher+echo cannot make a request to the server.
I have experience in express.js in ...
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 ...
3
votes
4
answers
15k
views
Private channel not working with Laravel echo server
I'm getting this JS error on the console:
app.js:167 Uncaught ReferenceError: receiverId is not defined
Here is my complete code:
PrivateChatController:
event(new PrivateMessageEvent($chat, $...
2
votes
3
answers
2k
views
Laravel Ratchet socket Auth
I am starting learning Ratchet (reactPHP) I am using laravel. But I came to a line about security.
How can I deny websocket connection based on user is logged in or not
public function onOpen(...
2
votes
1
answer
4k
views
Laravel + Nuxt + Nginx: WebSocket is closed before the connection is established
General scheme and project configuration files
The project consists of two parts:
Server part - Laravel (api)
Customer part - NuxtJs (client)
A minimum project configuration has been prepared for ...
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 ...
4
votes
1
answer
6k
views
Pusher with Laravel 5 Authentication
I'm making an app with Live Chat in Laravel 5 and I'm following this tutorial, https://github.com/dazzz1er/confer/tree/master I already followed all of them but I'm having an error in my web console:
...
3
votes
4
answers
6k
views
Pusher on route not sending event in Laravel
I am creating a test app using Pusher for real-time notification on Laravel 4.
As I am testing the said API, I am having difficulties on making it work.
I have this on my routes.php:
Route::get('...
2
votes
2
answers
5k
views
Laravel - Pusher - Detect when a user is no longer in the website or leaves the page
I'm facing a problem with a real time app that i'm developing. My problem is about user's status using Pusher. I would like to get the correct way to detect when a user leaves the page or keep ...
2
votes
3
answers
3k
views
Can't establish a connection with javascript to a secure websocket server
My development environment is this:
OS: Microsoft Windows 10
PHP framework: Laravel 8.0
PHP version 7.4
Websocket server: cboden/ratchet 0.4.3
WAMP server 3.2.0 (Apache 2.4.41)
Firefox 91.0.1 (64-bit)...
1
vote
1
answer
4k
views
laravel websocket in homestead not working
I've tried all the ways to implement this package Laravel Websockets with homestead,
locally it works but using nginx Homestead doesn't.
1 -> configuration for /etc/nginx/sites-available/example.test ...
1
vote
2
answers
5k
views
Laravel Broadcasting, how to auth to a presence channel?
I'm trying to join a presence channel (Public channels work well), but I can't get this to work:
Vue code:
mounted(){
Echo.join('game.' + "0").here((users) => {
...
1
vote
3
answers
3k
views
Laravel Echo + Laravel Passport auth in private / presence websockets channels
I'm trying to connect to a presence wesocket channel using Laravel Echo. I'm also using Laravel Passport. I followed lots of tutorials, but I'm getting 403 error codes, 302 codes and so on. I'm ...
1
vote
1
answer
2k
views
How to run websocket alongside laravel webpage in cPanel?
I have the Laravel project with websocket. I cloned the project on server with cPanel. Now I can access the running Laravel project through a sub domain like https://app.example.com. But I can not ...