Questions tagged [pusher-js]

The javascript client library of Pusher

The repository of pusher-js can be found here: https://github.com/pusher/pusher-js

201 questions
0
votes
1 answer

Pusher not working on my DCN Server, but works on my local machine. No error messages found

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…
0
votes
1 answer

Laravel web socket pusher - not working but event fired

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…
Hen Izon
  • 11
  • 1
  • 4
0
votes
1 answer

Pusher auth endpoint gives me a 404 error

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…
Ardalan
  • 723
  • 9
  • 26
0
votes
0 answers

Laravel Echo not listening to broadcast

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 …
Ryan Garde
  • 742
  • 1
  • 7
  • 20
0
votes
4 answers

What can I do to resolve this pusher error-JSON returned from auth endpoint was invalid, yet status code was 200?

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…
Adefowowe
  • 198
  • 2
  • 14
0
votes
1 answer

Sending CSRF authentication in Java - Pusher

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("
0
votes
1 answer

Pusher - Shared web worker variable scope

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…
aaabell
  • 81
  • 1
  • 7
0
votes
3 answers

Laravel Echo + Pusher Authorization Server Error 500

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…
0
votes
1 answer

Laravel echo/pusher not sending ping when receiving data

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…
Techno
  • 1,668
  • 1
  • 9
  • 19
0
votes
0 answers

Uncaught (in promise) TypeError: Cannot destructure property 'data' of 'err.response' as it is undefined

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…
0
votes
1 answer

Implementing Laravel 8 broadcasting with Pusher and Laravel Echo in a Vue frontend

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:
Adefowowe
  • 198
  • 2
  • 14
0
votes
0 answers

Web Socket via Pusher in Laravel - call 4 times

I use Pusher on my Laravel project. When I logged any pee, poop, it broadcast those events on all my devices: phone, laptops. I have this code.
code-8
  • 54,650
  • 106
  • 352
  • 604
0
votes
0 answers

Trying to understand use cases of web sockets in a node app

I was told a good use of websockets would be if you had an app that showed stock prices, which fluctuate constantly. You’d want all the clients to update these new prices at the same time so on the server, you can emit an event that updates these…
Rayy
  • 11
  • 2
0
votes
2 answers

Pusher : : [{"type":"PusherError","data":{"code":4009,"message":"Connection not authorized within timeout"}}]

I am using Pusher in React native. Trying to get message from debug console. Success to get 2 message and after I got this message in console: Pusher : : [{"type":"PusherError","data":{"code":4009,"message":"Connection not authorized within…
yoc
  • 214
  • 2
  • 13
0
votes
1 answer

Pusher how to exclude multiple recepients?

pusher.trigger('presence-channel', 'my-event2', 'Hi', socket_id); here I can not add multiple socket ids to exclude users in the above function. is there any solution for, triggering an event to a single user? or excluding multiple recipients from…