All Questions
19
questions
0
votes
0
answers
83
views
How to emit an socket event from one file and listen to it from another file?
io.on('connection',(socket)=>{
console.log('connection');
socket.on('connected',(userid)=>{
users[userid]= socket.id;
});
socket.on('updatecurr',()=>{
console.log('request');
...
1
vote
2
answers
452
views
Laravel Websockets raises a BroadcastException "Invalid auth signature provided"
I'm trying to add websockets support to my Laravel 9 application. I've read in their documentation that I could run an open source server on my own instead of relying on commercial solutions. With ...
1
vote
0
answers
799
views
Laravel web sockets automatically stopped
I am using beyondcode/laravel-websockets to implement web sockets functionality in Laravel. I am using supervisor in Apache server to run processes for database queues and web sockets. It was working ...
2
votes
0
answers
1k
views
Laravel - Unlike the public channels, private channels don't work
I'm using Laravel 9.1, and trying to broadcast on private channels, but unlike the public channels, it doesn't work for some reason!
I have an event like this:
class newMessage implements ...
4
votes
0
answers
225
views
Flutter Web Sockets Not Connecting to Laravel
Using this package https://pub.dev/packages/laravel_echo
Current Code
import 'package:example/modal.dart';
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import '...
1
vote
0
answers
172
views
Connection between two servers using Laravel (Sockets)
I want to have a central server and other client servers that all connect to the central server, everything using PHP with Laravel
I tried using sockets in Laravel with laravel-websockets package, but ...
1
vote
0
answers
691
views
Laravel Not Broadcasting to Socket.IO Client
I have created a laravel event:
<?php
namespace App\Events;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PresenceChannel;
use ...
0
votes
1
answer
250
views
Laravel Socket Subscribe
I have created a socket server in Node js. It is working fine while subscribing from an ejs file.
The part I'm confused is how do I keep my laravel application listening to the server I have created?
...
2
votes
3
answers
4k
views
Laravel laravel-echo-server not receiving messages (chat)
I'm trying to setup laravel-echo-server but I can't get it to work. With the same setup (I use Vue.js) it's working with pusher. I have build a chat.
My laravel-echo-server.json looks like this:
{
...
1
vote
1
answer
1k
views
How to run web-socket with system starts in Ubuntu server 18.04?
I have the Laravel project which uses the web-socket. In this time the Laravel is running on port 8000. And the web socket is running on port 8090 successfully. Currently, I use this command in the ...
0
votes
0
answers
447
views
Send php array to a socket
How to send a php array to a socket server?
I have a webservice and i want to send a php array to a socket webservices.
How i can do it?
I have tried this:
$host = "170.51.249.101";
$port = ...
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 ...
0
votes
1
answer
1k
views
How to send data to laravel even from client using socket.io
I am trying to use socket.io. and want to send a variable from my javascript (client side) to laravel event and then pass it back to client. I commented in my code what I want.
below is my code:
...
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(...