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
12
votes
3 answers

Laravel Pusher Websocket Not Working on HTTPS

I'm using Laravel 5.8, and we're using a web socket with PUSHER in our application. It's broadcast perfectly locally or when I am on HTTP mode. When I update my set up to HTTPS, Broadcasting is no longer works. Any hints on this ? anyone ? I've…
code-8
  • 54,650
  • 106
  • 352
  • 604
6
votes
0 answers

How can I send pusher beams browser notification alerts with nextjs?

I'm implementing Pusher-Beams with next.js using authenticated users flow exactly as described in beams docs, and I got in the browser console client is subscribed and registered successfully. However at pusher-beams debug-console website page I…
Abdelrhman Gad
  • 195
  • 2
  • 11
5
votes
0 answers

I am facing Auth issue : com.pusher.client.AuthorizationFailureException: java.io.FileNotFoundException issue in Android

I am facing issue when I'm connecting pusher with Laravel server.   Error : Pushers: State changed from com.pusher.client.AuthorizationFailureException: java.io.FileNotFoundException: https://url/auth Here is my code -> Gradle : implementation…
5
votes
1 answer

Unexpected mix of '||' and '&&' no-mixed-operators

I have the following hook and we use it to bind to channels. import { useEffect, useState } from "react"; import { Channel, PresenceChannel } from "pusher-js"; import PrivateChannel from 'pusher-js/types/src/core/channels/private_channel'; import {…
Nick
  • 169
  • 1
  • 10
5
votes
1 answer

Laravel Web-sockets and Chrome `SameSite` attribute

So there is a lot of issues about this sameSite buisness, but I cannot find any answers when it comes to Laravel Websockets. There is nothing in their documentation about this. So I thought I would ask here and see if you guys have any…
TheWebs
  • 12,470
  • 30
  • 107
  • 211
4
votes
1 answer

Laravel Echo authentication via API

Using Pusher in conjunction with Echo on the client, I'm attempting to authenticate a private channel via api using Bearer Authorization header token - however I'm met with the following logs (THE LAST LOG BEING THE ERROR): Pusher : : ["State…
John Jackson
  • 900
  • 2
  • 12
  • 28
4
votes
4 answers

SecurityError: The operation is insecure - React Heroku

I am trying to deploy an application I created using create-react-app. It works locally just fine. But when deployed on Heroku, the following error is shown: SecurityError: The operation is insecure. I am using the Pusher library to make a reactive…
David F
  • 63
  • 1
  • 7
4
votes
3 answers

laravel websockets and pusher-js CROS problem on ubuntu server

I used laravel websockets with echo and pusher js. this is my code: bootstrap.js: import Echo from 'laravel-echo' window.Pusher = require('pusher-js'); window.Pusher.Runtime.createXHR = function () { var xhr = new XMLHttpRequest(); …
Milad Heidari
  • 191
  • 4
  • 7
4
votes
2 answers

Laravel Echo - Uncaught TypeError: Cannot read property 'channel' of undefined

I'm trying to get laravel echo to work in my app and after checking every nook in my code I don't find the possible problem that is causing the referenced error. Obviously it's about of a problem by importing Echo which I have checked. I show you my…
3
votes
1 answer

Failed to execute 'replaceState' on 'History': # could not be cloned
I have this Jetstream Laravel application, which has a presence channel set up for chat features. What's happening is: When I join the channel and send a message there, everything works fine, except when I try to exit the channel. In every…
3
votes
0 answers

Why does pusher in a service worker disconnect every minute?

my website refreshs let's say every 5 minutes and I use a service worker. Inside this service worker I use pusher.com and this happens: There are many "Connection" and "Disconnection" events for only two Clients (Raspberry Pi). After this "Vacated"…
3
votes
1 answer

Why Pusher keep making POST requests each seconds?

I'm using Pusher websocket and i would like to understand why it keeps making POST requests every 10-20 seconds: app.js:66006 XHR finished loading: POST "https://sock26-us2.pusher.com/pusher/app....... After some time my console log this: (699) XHR…
João Hamerski
  • 461
  • 1
  • 5
  • 22
3
votes
0 answers

Unable to get Real time update on database table change using laravel websockets

I am using Laravel websockets for the first time, i am not able to get the real time update. i created custom form used to save name and address for user, save data in table, and showing the table. i want when any other user fill the form and after…
3
votes
0 answers

Pusher triggering only after the page reloads

I am using Pusher for triggering an alert when data is inserted in my database. The server-side triggering is working, but on the client side, the trigger only works when I refreshes the page. Here's the App.js -> useEffect(() => { const…
Ajit Kumar
  • 367
  • 1
  • 10
  • 35
3
votes
2 answers

Outdated react state in pusher .bind method

I use pusher-js to receive data from the backend. I configure it in useEffect like this: useEffect(() => { const pusher = new Pusher('my_app_id', { cluster: 'us3', }); const channel = pusher.subscribe('messages'); …
Velrin Black
  • 412
  • 1
  • 4
  • 10
1
2 3
13 14