Questions tagged [laravel-broadcast]

42 questions
0
votes
1 answer

Laravel-echo showing 401 (Unauthorized) for private channel except one user

I am getting 401 (Unauthorized) status for laravel private channel from reactJS. This is working for userId=1 but returning 401 for all other users. Here is the code for Laravel class BroadcastServiceProvider extends ServiceProvider { /** *…
0
votes
0 answers

Can't receive events broadcasted on Laravel

I've been struggling for a while now and can't find a way to make this work. My project is on Laravel 8 I'm using Redis and laravel-echo-server (since it doesn't seem maintained I also tried with a hand-made express/socket.io server) The problem :…
0
votes
0 answers

Laravel broadcasting every keystroke

-Hey, I'm actually creating an online exam application I want to add a system that grants to teachers to see live what students are typing in a text area (or input) using broadcast or laravelecho. -So my Scenario is when a student is typing, the…
0
votes
0 answers

Laravel Websockets - Why do we still need valid Pusher API keys

I am using Laravel WebSockets on my project. And it is told that Laravel WebSockets is pusher replacement. PUSHER_APP_ID= PUSHER_APP_KEY= PUSHER_APP_SECRET= PUSHER_APP_CLUSTER= PUSHER_APP_HOST= But my question is Why do we still need valid pusher…
LoveCoding
  • 1,121
  • 2
  • 12
  • 33
0
votes
0 answers

Node with Laravel Echo and Socket.io but no response

I am setting up Laravel API for a mobile app to call the APIs and I am currently configuring Laravel Broadcast which I am new to it. I have installed laravel-echo-server and redis for the server side while laravel-echo and socket.io-client for the…
0
votes
1 answer

VueJS - Can't access assigned this.property declared within mounted() in mounted()

I'm doing a project where I'm fetching an api data from my backend laravel with axios get and using its property to concatenate a channel within the mounted section of my component. I'm fetching api/user through axios get which contains { "id":…
0
votes
0 answers

Laravel broadcasting channel function won't fire

So I'm gonna use laravel broadcasting for a chat app, I followed Laravel Broadcasting approach, Uncommented App\Providers\BroadcastServiceProvider from providers array inside config/app.php Registered in pusher website, made a channel and filled…
AMINEDGE
  • 439
  • 3
  • 12
0
votes
1 answer

Laravel Echo joining() and leaving() methods are not triggered

Here is my Echo config: window.Echo = new Echo({ authEndpoint: process.env.VUE_APP_API_ENDPOINT.replace('/v1', '/broadcasting/auth'), broadcaster: 'pusher', key: 'someKey', wsHost: window.location.hostname, wsPort: 6001, …
Tanmay
  • 3,009
  • 9
  • 53
  • 83
0
votes
1 answer

How to create private channel name dynamically

I woluld like to create real-time order tracking system using laravel, vue and pusher. In admin panel I have list of all orders. The idea is when admin change order status the user (owner of this order) will get notification without refreshing page.…
appson
  • 173
  • 1
  • 18
0
votes
1 answer

Laravel with Socket/Redis - Private channel routes not working

I am kinda stuck in broadcast routes. i setup a socket server with redis and configured it with Laravel. For public channel ,everything is working fine but when it comes to private or presence channel, it is somehow bypassing laravel broadcast…
0
votes
1 answer

Laravel Broadcast Notification error : Client can not be authenticated, got HTTP status 404

I am trying to build a real-time notification system. I used Laravel-Notifications and laravel-echo-server. when I listen for notification using start command in terminal laravel-echo-server start then error occured in private channel: ⚠ [4:36:43…
Jinal Somaiya
  • 1,931
  • 15
  • 29
0
votes
2 answers

Pusher Auth value for subscription to private-channel has invalid format 'key:signature'

We are using Pusher to broadcast Laravel notification events. I have a problem with authorizing users on a private channel. The auth 'key:signature' is returned but in a different format. The object returned looks like the image I uploaded auth:…
1 2
3