All Questions
21
questions
1
vote
0
answers
1k
views
WebSocket connection to 'protocol=7&client=js&version=4.3.1&flash=false' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
I was implementing laravel websockets package in project it is working fine in my local machine but on server first it was giving error of Connection timeout That problem was solved when add TCP port ...
0
votes
0
answers
316
views
websocket connection closed before established laravel on ubuntu server?
I have implemented websocket in laravel framework. It is working fine on localhost windows OS but giving error on live ubuntu server
["Connecting",{"transport":"ws","...
0
votes
0
answers
210
views
laravel websocket package is not connecting in laravel 5.8
I am using laravel websocket package instead of pusher . I have followed all the steps. server is also running when I connect it it gives these errors.
POST http://127.0.0.1:8000/auth 404 (Not Found)
...
0
votes
2
answers
236
views
Laravel real time chat with websockets
Hi I am tring to build a real time chat application with websockets but whenever I try to go visit http://127.0.0.1:8000/laravel-websockets I get error 404 not found. I did all the steps like in the ...
0
votes
1
answer
546
views
Laravel websockets chat system
Hi I am trying to build a laravel real time chat. I configured websockets and it seems to be connecting, but now I am trying to send a message is not working. I was following a tutorial in youtube did ...
1
vote
1
answer
750
views
laravel websockets cannot be served
I am trying to use websockets following the documentation of https://docs.beyondco.de/laravel-websockets/ after typing "php artisan websockets:serve" i get this following error
Whoops\Exception\...
0
votes
2
answers
1k
views
How setting laravel-websockets url under /admin to protect it?
Using beyondcode/laravel-websockets packege
I can modify config option
'path' => ‘admin/laravel-websockets’
to run it under admin, but how to protected access to it to logged user with admin ...
0
votes
2
answers
862
views
Pusher filling up with Laravel Broadcasts
Recently been observing this in our Laravel project that Pusher is getting clogged up with messages upto the limit. This is abnormal for usage of peak concurrent - 16 and 4 million messages a day.
...
4
votes
2
answers
5k
views
Laravel Broadcast to a private channel using Socket.io
I am trying to create a real-time notification system using Laravel as the backend API Client and a SPA for my frontend, I am using React as the frontend, but for the below example I will be using a ...
0
votes
1
answer
135
views
socket_connect keeps failing with permission denied
I am running into the following error message:
socket_connect(): unable to connect [61]: Connection refused
The code that I am using:
$address = 'localhost';
$port = 5600;
$socket = socket_create(...
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, $...
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 ...
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....
0
votes
1
answer
1k
views
Laravel echo does not receive broadcast message
Here is event
<?php
namespace App\Events;
use Illuminate\Broadcasting\Channel;
use Illuminate\Queue\SerializesModels;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Broadcasting\...
2
votes
0
answers
401
views
Unable to get message from channel in laravel echo
Here is socket.js code
var app = require('express')();
var http = require('http').Server(app);
var io = require('socket.io')(http);
var Redis = require('ioredis');
var redis = new Redis();
redis....