I developed a queueing system application using PHP Codeigniter and Pusher. On my local desktop, it works perfectly fine. I tried to deploy it on our DCN server, but pusher seems not working, user needs to refresh its browser just to display the…
I'm trying to use laravel websocket to preform socket connection in my app.
Doing all the steps in laravel docs but still not working, no connection appearing in dashborad, only event if I fired from laravel tinker(not fire the console.log I put in…
I am using pusher-js in react. My frontend is served at app.xxx.com and my backend is served at api.xxx.com. We have a private notification websocket channel to push notiifcations through app.xxx.com. What i'm trying to achieve is using the auth…
I have these values in env:
BROADCAST_DRIVER=pusher
QUEUE_CONNECTION=database
PUSHER_APP_ID=some_id
PUSHER_APP_KEY=some_key
PUSHER_APP_SECRET=some_secret
PUSHER_APP_CLUSTER=some_cluster
This is how I broadcast the event
…
I still have this problem after asking the same question here: JSON returned from auth endpoint was invalid, yet status code was 200 with no response. I've looked at similar questions and followed the
suggestions: setting my broadcast driver to…
I'm trying to send a CSRF authentication with pusher, this is the part of code involved:
Map authHeader = new HashMap<>();
authHeader.put("X-AUTH-Token", "");
HttpAuthorizer authorizer = new HttpAuthorizer("
I'm using a shared worker for a pusher in Laravel, Here XYZABC is my pusher key as string, but is there a way I can use ENV variable or variables defined in my blade file so I don't have to hard-code key there, and also need to switch channels based…
I'm trying to test and learn laravel's broadcasting with echo. But after trying and trying I can't achieve what I want.
It works with public channel channel.
But when it comes to presence channels it doesnt.
For solving error I did:
Increasing php…
I'm running a laravel websocket and have a connection over wss.
I am running commands on the server, and the commands are logged in a file. Each line is also sent over a websocket to the front-end so I can view it. Each laravel-command has it's own…
I get this error;
Uncaught (in promise) TypeError: Cannot destructure property 'data' of 'err.response' as it is undefined.
but my data is successfully inserted in the database. It says that I get that error in my async function in frontend. But I…
I am trying to implement event broadcasting and notification with laravel. The goal is to broadcast a private message to a logged in users via notifications.
I created this event, see code below: