Skip to main content

All Questions

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 ...
ERaufi's user avatar
  • 1,623
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 ...
Jayant Dahiya's user avatar
2 votes
0 answers
511 views

React Websockets not working with Laravel Echo Server

I've currently got websockets working with my project with a React front end (www.mysite.com) and a Laravel back end (api.mysite.com) with Laravel Echo Server. It is noted that my front end and back ...
pbrune's user avatar
  • 470
2 votes
2 answers
4k views

How to connect websockets via socket.io from React to Laravel using laravel-echo-server?

I'm currently having a problem getting websockets set up with socket.io from React to Laravel using laravel-echo-server. Everything appears to be working except whenever I navigate to https://api....
pbrune's user avatar
  • 470
1 vote
1 answer
1k views

Prevent duplicate websocket message Laravel Echo and React

I have an app that works using Laravel on the backend, and React on the frontend. We are using beyondcode/laravel-websockets to broadcast websocket messages from the Laravel server to a React client. ...
justadev's user avatar
  • 1,406
0 votes
1 answer
461 views

laravel/beyondcode pusher not working with react-native returns an unavailable state

const PusherClient = new Pusher('pusherAppKey001', { encrypted:true, wssPort:6001, wsHost:`${PUSHER_SERVER}`, cluster:'mt1', disableStats:true, authEndpoint: `${PUSHER_SERVER}/...
user8453321's user avatar
1 vote
1 answer
2k views

Laravel Echo stops listening events after unmounting and mounting again a react component

I've already connected Laravel Echo. I use Pusher and ReactJS and put connection to the private channel to componentDidMount() method: componentDidMount() { let channelName = 'channel.12345'; ...
Oleksandr Lazariuk's user avatar
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 ...
Salman's user avatar
  • 1,005
0 votes
0 answers
4k views

How to get authenticated to join private channel using Laravel Echo and Socket.io

I am using Laravel 5.8.10, React 16.8, Laravel Echo Server 1.5.2, Redis 3.2.9, and Socket.io 2.2.0. I am NOT using Pusher and don't want to use Pusher. I am trying to create a basic chat system for ...
Symphony0084's user avatar
  • 1,405