All Questions
484
questions
0
votes
0
answers
14
views
Best Practice for Broadcasting Dynamic (updating) Product Prices in Laravel 11 with Vue 3 Frontend
I am developing an e-commerce platform using Laravel 11 for the backend and Vue 3 for the frontend, which requires near real-time updates of product prices and stock levels in response to currency ...
0
votes
0
answers
47
views
Can Laravel Reverb get user online/offline status in backend?
I'm building a web game based on Websocket, I need to know which user is online or offline in realtime.
I googled a little, and I found out it has to be the client-side to told server-side if user is ...
0
votes
0
answers
18
views
How properly show up realtime message using pusher?
I'm having trouble with my websockets. I'm trying to use Pusher and Echo to display whether a user has logged in or logged out, but I can't figure out how to display the message. According to the ...
0
votes
0
answers
43
views
Pusher error 0A000438:SSL routines::tlsv1 alert internal error
I'm using Laravel Reverb on my live server. I've configured it to run with Nginx. However, I'm getting the following error whenever I try to broadcast an event using Reverb.
Pusher error: cURL error ...
0
votes
0
answers
44
views
cpanel configure Apache for laravel-reverb
i can't configure Apache in cpanel for laravel reverb in production service
i found nothing to try
all blogs, articles and GitHub issues are about nginx and nothing about Apache or cpanel i did not ...
0
votes
0
answers
12
views
Websocket Handshake at the same time makes server 504 bad gateway
Okay, here's the detail
I have ubuntu VM with nginx as web server, here's all the app
backend, laravel
frontend, laravel
websocket, socketio, expressJS (run on port 8015, reverse proxy to domain-ws....
0
votes
1
answer
39
views
How to synchronize actions between two separate frontends using Laravel and Next.js?
I'm developing a system with two separate frontends using Next.js: one for clients and one for admins. Both frontends need to be synchronized such that when a client makes a booking, it should ...
0
votes
0
answers
124
views
Laravel 11 Reverb: WebSocket Connection failed
WebSocket connection to wss://subdomain.domain.com/app/... failed
Its working on locally without any issue but in production it gives issue
here is my .env for production
REVERB_APP_ID=401132
...
0
votes
0
answers
33
views
Laravel backend and WebSocket connection with React Native
How to connect WebSocket and backend in React Native ?
I have a Laravel backend and web socket and a frontend developed in React Native. I have connected the backend using
adb reverse tcp:3000 tcp:...
0
votes
0
answers
40
views
Laravel echo TypeError: Cannot read properties of undefined (reading 'channel')
I'm using Laravel for backend and Vue for frontend. I'm also using Vite as my bundler and laravel echo for broadcasting. I'm trying to create a websocket to show newly added comments in real time.
...
0
votes
1
answer
44
views
I would like to use 'texttalk/websocket' in my laravel project
I would like to use 'texttalk/websocket (https://packagist.org/packages/textalk/websocket)' ' in my laravel project.
The package is currently installed using the 'composer require texttalk/websocket' ...
0
votes
0
answers
58
views
Laravel Rever and React Configurations
I want to connect my React app with Laravel Reverb.
When connecting to a public channel everything works fine. but when trying to connect to a private channel I get connection refused
My React Code
...
1
vote
1
answer
92
views
Flutter: Received error message "Pong reply not received in time" when using WebSockets
I'm developing a Flutter application that connects to a Laravel REVERB backend using WebSockets. I'm using the IOWebSocketChannel.connect method to establish the connection and the sink.add method to ...
0
votes
0
answers
50
views
Preventing double serialization in Laravel 11's event broadcasting
I am dispatching the SeatUpdatedEvent through a websocket with Laravel Reverb. The "data" key of the JSON response is serialized twice.
What am I missing?
<?php
namespace App\Events;
...
1
vote
2
answers
281
views
Implementing websockets for real-time updates in Laravel and Vue.js
I have an app in Laravel for the backend and Vue.js and Quasar for the front end. I have a view in Vue.js that sends a request every 5 seconds. I would like to know how I can implement web sockets. I ...
0
votes
0
answers
69
views
Down Soketi docker when notification with wrong syntax
I set up Soketi on docker server and when I sent this pattern of message with postman to soketi disconnect my connection and docker container down! and show this error!
((1006 Abnormal Closure:No ...
2
votes
2
answers
604
views
Do I need a node.js server for Laravel Reverb?
Hello I've got a question, beacause I still don't understand that topic well and I'm beginner in that, I want to build web application where will be included realtime chat.For websockets I want to use ...
0
votes
0
answers
79
views
Not receiving WebSocket messages in Postman using Laravel and beyondcode/laravel-websockets package
I'm having trouble receiving WebSocket messages in Postman when using Laravel 10 and the beyondcode/laravel-websockets package. I've followed the steps below, but I'm still not receiving the ...
0
votes
0
answers
79
views
Listening to user disconnect events with Soketi WebSocket
I am utilizing a NextJS front-end and a Laravel back-end, with Soketi managing the WebSocket server. From my front end, using Laravel Echo, I can listen to connection events from the WebSocket server.
...
1
vote
1
answer
109
views
'/api/broadcasting/auth' 403 Forbidden
I'm trying to build connection between my react.js app & laravel 10 (both are separate)
channel is Private
For react side
import React, { useEffect } from "react";
import Pusher ...
1
vote
0
answers
75
views
Laravel Websockets Active list
Everyone!
I'm using beyondcodes/laravel-websockets. I have a webhook route:
WebSocketsRouter::webSocket('/my-websocket/{appKey}', \App\WebSocketHandler::class);
This will be called by users from their ...
0
votes
0
answers
221
views
Problem connecting to the soketi on the server
I am going to setup a websocket
I have used soketi package
But I am facing a problem in connecting to the web socket
which now i will get this error
code: 4001
message: "App key ---- does not ...
1
vote
0
answers
268
views
laravel broadcast.php pusher option not working
I am working on a realtime chatting application and I am using websocket with laravel
I am using library beyoundcode/laravel-websocket
I have change broadcast driver to pusher and have configured ...
0
votes
1
answer
308
views
laravel-echo and socket.io are unable to connect with laravel-echo-server
i am new to web sockets, i am using laravel echo, redis, socket.io with laravel-echo-server. But when i console.log(window.Echo.connector.socket.connected), it prints false in console.
My terminal ...
1
vote
1
answer
85
views
Implementing WebSocket Broadcasting in Laravel for Real-Time Updates when Creating New Games
"I'm developing a multiplayer card game using Laravel, and I'm struggling to implement WebSocket broadcasting for real-time updates. Specifically, I want to notify all connected clients when a ...
0
votes
0
answers
236
views
How to use Laravel WebSockets for Realtime Data Update
I want to create application that using websocket for realtime data sync. My application has laravel base as backend and react next as frontend, which has an architecture where FE and BE are separate ...
1
vote
0
answers
122
views
Session token keeps changing on each message sending using websocket
I'm using multi tenancy in my application with this package:
https://tenancyforlaravel.com/
Here everything is working good as per requirements. But my application is having chat functionality for ...
0
votes
0
answers
269
views
Slack API using websocket not getting events after successful connection
Using PHP/Laravel and WebSocketClient and Guzzle.
I am able to auth through Guzzle to get WSS URL and further able to connect using the provided WSS URL. I can dump the hello message:
{#713
+"...
0
votes
0
answers
88
views
Trouble Running Laravel WebSocket on Windows Server with IIS
I'm facing challenges setting up a WebSocket for my Laravel application hosted on a Windows Server with IIS. During the development phase, I used the Laravel Ratchet WebSocket package and ran it using ...
0
votes
1
answer
190
views
Client laravel-echo does not respond to server events
I'm trying to build my docker sample to work with php8.2, laravel10, websockets and redis.
I have already prepared all the necessary docker images and combined them with the Caddy proxy.
I also used ...
2
votes
3
answers
716
views
401 (Unauthorized) when subscribing to private-channel in Pusher (Vue/Laravel)
I've set up a Vue3/Laravel app with a live-chat via Pusher which works over non-private channel chat. In the next step I want to use a private channel but something weird happens. The pusher.subscribe ...
0
votes
1
answer
53
views
Web Socket In Laravel 8
I am trying to use web socket.....
So this is my App\Events\TestEvent.php
<?php
namespace App\Events;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use ...
0
votes
0
answers
34
views
Laravel echo not working with private but working with public channel
window.Pusher = Pusher
window.Echo = new Echo({
broadcaster: 'pusher',
withCredentials: true,
auth: {
headers: {
...commonHeader
}
},
key: 'local',
...
0
votes
0
answers
66
views
Implement Laravel Self-hosted Websocket and Flutter
I am trying to make connections to Laravel self-hosted Websocket (using Laravel echo settings), and Flutter app (also using web_socket_channel). So I have a main class BaseWebSocketService:
class ...
0
votes
1
answer
178
views
Laravel Echo Server , Socket IO , Nginx problem
we are trying to use laravel echo server , socket io , redis on nginx webserver for a page that we need to have real time informations on it , our laravel website and realtime is working on local ...
0
votes
1
answer
216
views
Laravel Broadcasting with Soketi listening to channel via Echo is not working
I'm using Laravel Broadcasting with Soketi and I'm trying to listen to the jobs channel and JobFailedEvent. So here is my code.
class JobFailedEvent implements ShouldBroadcast
{
use ...
1
vote
1
answer
3k
views
Socket.io with Laravel 10?
I'm learning a little Laravel and want to try websockets with Socket.io. I found several tuts, but they're all quite old.
A thing that I saw is that nowadays Laravel suggests to have Laravel Echo on ...
1
vote
3
answers
885
views
Pusher error: cURL error 7: Failed to connect to 127.0.0.1 port 6001: Connection refused
I'm developing an application with separate Laravel 10 and Vue 3. I wanted to implement real time events with Laravel broadcasting but I'm running into some problems.
I connect to the websockets from ...
0
votes
1
answer
170
views
laravel echo does not send the message
I created a real-time chat using pusher and laravel-echo, but in production on the heroku app, the pusher doesn't give any errors, it doesn't give any errors in the console, however, the messages are ...
1
vote
0
answers
210
views
Laravel Pusher Websocket Not Working on HTTPS port 443
"message": "Pusher error: cURL error 7: Failed to connect to 54.217.244.226: Network is unreachable (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://api-eu.pusher....
0
votes
1
answer
172
views
Pusher public events not getting read in the Frontend(react)
I'm trying to make custom channel names using the pusher-php in my Laravel backend micro-service and I'm trying to read the events triggered on these channels on my React frontend.
This is how my ...
0
votes
0
answers
39
views
How to release two-way communication of backend servers in web development?
(help to design the functionality and choose the right technologies for my personal development )
Describing the task:
the main server receives a file from the site, then validates it and pulls ...
0
votes
0
answers
83
views
Laravel Websockets sent and received messages do not show up
I am using Beyondcodes laravel-websockets lib to implement websockets functionality to my app. However when I connect to the ws server (locally) I only get connect and disconnect messages. Whenever I ...
1
vote
1
answer
75
views
In Laravel 9, how can I dispatch a websocket event instantly in production?
I am using Laravel 9. I have an auction-style system. When a user bids, I dispatch an AuctionBidPlaced event:
class AuctionBidPlaced implements ShouldBroadcast
{
use Dispatchable;
use ...
0
votes
0
answers
160
views
Laravel WebSocket with Flutter
I'm trying to use laravel websocket in my flutter app
This is my laravel event code and I am broadcasting the event right here by passing the comment in the constructor
<?php
namespace App\Events;
...
0
votes
1
answer
45
views
Laravel Websockets issues - Public events working but not private - Getting 401 error
I am using Laravel on a NON spa app with vue 3.
I am also using Sanctum for an API but do not use it for the non SPA communications.
When I broadcast a public websocket event, I receive it in the ...
0
votes
0
answers
188
views
Trouble with WebSocket (wss) Connection Using Socket.IO in Laravel, Node.js (Redis + Socket.io), and Angular
I'm working on this project where I've got Laravel in the backend, Node.js with Redis and Socket.IO for websocket, and Angular in the frontend. Everything is working fine in my local environment but ...
0
votes
0
answers
67
views
Laravel web socket package and sending request to server
I have used the Laravel web socket package for the persistent chat application. when i call the api this will store the message on database and the message will be broadcast. if i send 10 messages ...
0
votes
0
answers
88
views
Setting up a dedicated server for Beyoncode Laravel Websockets
I have been working on this one for almost a week now. I am trying to build a standalone websockets server that can cater multiple clients at the same time. So far I am able to publish to the ...
0
votes
0
answers
64
views
Failed to resource: net::ERR_TUNNEL_CONNECTION_FAILED pusher.min.js
i m working on laravel websocket, it runs fine on my local, but when i deploy to server which doesn't has internet connection it failed, when i m trying to access http:localhost/laravel-websockets. ...