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
3
votes
1 answer

create and joining websocket via laravel-echo in react app

i am using laravel-echo to create and use websocket in my react-app. its easy to use laravel-echo in a page. but when need to use in several pages, it make several channel and subscribe several time. how to make a single channel and join ones in…
mansour lotfi
  • 524
  • 2
  • 7
  • 22
3
votes
1 answer

Laravel Echo + VueJS broadcast/auth problem

I'm using Laravel Echo and pusher as my server. It is working already on public channels. Here is the photo of my laravel echo listener image link Now my problem is when I use PrivateChannel and when I listen in the private channel this error pops…
Jonas
  • 185
  • 3
  • 14
3
votes
0 answers

__WEBPACK_IMPORTED_MODULE_7_laravel_echo__.Echo is not a constructor in Angular 5

I am implementing socket.io using laravel pusher in laravel and I have also installed laravel-echo and pusher-js using npm install --save laravel-echo pusher-js in frontend. But getting error when I am trying to execute following code , let echo =…
3
votes
0 answers

Pusher-js getting error net::ERR_BLOCKED_BY_CLIENT

Im trying to connect to pusher in a react app and i keep getting the error net::ERR_BLOCKED_BY_CLIENT. I've looked up the error and its generally associated with add ons, but i tried removing all my google chrome add ons but its still not working.…
Joseph Arnaud
  • 95
  • 1
  • 7
3
votes
1 answer

Laravel Broadcasting with Pusher isn't Listening with Vue

With Laravel (v5.7) I'm trying to get Broacasting to Work with Pusher and Vue. The App is like a Chat. When there is a message send in a private chat, the following function is called: broadcast(new NewChat($message)); This is the…
user1469734
  • 851
  • 14
  • 50
  • 81
3
votes
0 answers

How to handle poor internet connection scenario in pusher.com library on the server side?

User subscribes to a presence channel. Then user's internet connection drops. How do I let the other users know that this user is no longer reachable? How long does it take for Pusher to remove the user from the presence channel when they become…
user187809
  • 706
  • 2
  • 8
  • 23
2
votes
2 answers

Laravel Sanctum & broadcasting with Pusher.js (401, 419 error)

For 4 days I have been trying to connect to a private channel. Combined all the possible properties that I could find, but nothing solved the problem. A deeper understanding of the issue is needed. I am creating an application using Laravel Sanctum,…
2
votes
1 answer

Websockets not working: Failed without error

I setup a websocket server in a laravel 8 project that is accessible from the internet. I then installed the laravel-websockets package 1.12 together with the pusherphpserver package 5.0. I have created an account on the Pusher's API website and…
m33ts4k0z
  • 645
  • 7
  • 26
2
votes
0 answers

Laravel websocket and react native - ExceptionsManager.js:180 TypeError: Cannot read property 'presenceChannel' of undefined

I have developed a react app using laravel and react-js by laravel-websockets and it works well! However, when I want to use it in a react native application, It throws an exception: ExceptionsManager.js:180 TypeError: Cannot read property…
2
votes
2 answers

Pusher events are not received in Nuxtjs pages

I use laravel-echo for working with pusherjs in Nuxtjs. nuxt.config.js section for pusherjs configuration: buildModules: [ [ '@nuxtjs/laravel-echo', { broadcaster: 'pusher', key: 'my-key-here', cluster: 'eu', …
Fred II
  • 581
  • 2
  • 11
  • 23
2
votes
1 answer

How do i rewrite data to variables using pusher in vue js?

I want to ask how do I rewrite vue js variable data when I use pusher on vue js. In this case the pusher I have will change the data every 5 minutes but here I don't rewrite the previous variable. Usually I only use: