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

How to emit pusher events to only specific user?

I want to emit pusher event from nodejs to specific client in react. If multiple clients have subscribed to the channel.
0
votes
2 answers

Laravel echo send data when joining channel

How do I receive data when the client initially joins a channel? Something like this: Echo.channel('channel-name') .onjoin(function (data) { console.log(data) // Data received from server }) As soon when the client joins, the server…
0
votes
1 answer

Laravel (Echo, Sanctum, websockets) + Pusher + Nuxtjs SPA

I'm trying to send events to private channel, but I can't receive them. Otherwise it works fine for public channels. Here's my code : Plugin : Echo.js window.Echo = new Echo({ broadcaster: 'pusher', key:…
BKF
  • 1,298
  • 4
  • 16
  • 35
0
votes
1 answer

Prevent multiple votes on Node/Express + Pusher JS Voting App

I'm creating a simple voting app where by the client gets to choose from a HTML select dropdown and select an option, and then submitted through a form it fires a POST request to save the selection in the database. This is then updated on the…
Joe Consterdine
  • 1,035
  • 1
  • 18
  • 37
0
votes
1 answer

Laravel /broadcasting/auth Always forbidden with 403 Error

I tried many solutions but no one works for me I've installed Laravel echo and pusher js and Pusher/Pusher #bootstrap.js import Echo from 'laravel-echo'; window.Pusher = require('pusher-js'); window.Echo = new Echo({ broadcaster: 'pusher', …
Hadayat Niazi
  • 1,991
  • 3
  • 16
  • 28
0
votes
1 answer

(Puser Beams Notification) Serve/upload file from the root of my website

I'm building notification components for my ReactJS web app, and I'm using Pusher Beams, I don't understand step 2 in this tutorial, can anyone explain how to "serve this file from the root of your website"?
0
votes
1 answer

Use Laravel echo with Laravel mix

I am new to the Laravel Mix frontend framework All I want to know is how can we use Laravel Echo with Laravel Mix. I am using Laravel database notifications and I want to show them in real-time to the user. Notifications are working fine and I am…
Rizwan
  • 79
  • 6
0
votes
1 answer

Vue undefined property Id when using Laravel Echo

I'm learning Vue2 and currently, I have a simple boilerplate using Laravel, Vue2, Laravel Echo, Sanctum, and the Websockets package, all using the Laravel default Echo setup. Everything works nicely there. Now I'm trying to decouple things, so I've…
Jazzman
  • 85
  • 1
  • 8
0
votes
0 answers

Having troubles with pusher-js v7.0.1

Am having troubles with using Pusher-js in Laravel and having it show on Debug console. Pusher is connecting successfully but no event is seen on the debug console. My credentials are correct, it showed something few hours ago but hasn't responded…
0
votes
0 answers

Angular Laravel Pusher 419 unknown status when trying to auth user

I'm trying to implement chat using Angular, Laravel and Pusher. The chat is working but now i want to auth the user in order to have indication if the user is online or not. I understood that in order to do this i need to make private rooms instead…
lironzaa
  • 484
  • 2
  • 8
  • 17
0
votes
1 answer

not able to use laravel-echo in vue cli project

I am tryint to create a chat app using vue cli project with laravel-echo. But getting error as 419 unknown status /broadcasting/auth. This is my main.js filr import Vue from "vue"; import App from "./App.vue"; import…
0
votes
1 answer

Fetch Data with interval in javascript?

i have the following code with Pusher: Echo.private("channel").listen(".foobar", (e) => { this.fetchData(); }); When there is an incoming request, I want data to be fetched again. But not on every Pusher event. I want the data to be fetched only…
user1469734
  • 851
  • 14
  • 50
  • 81
0
votes
1 answer

Get real time Pusherjs connection state via Laravel Echo in Nuxtjs

I want to check the connection state of Pusherjs from $echo in NuxtJs page. when I use: mounted(){ this.connection = this.$echo.connector.pusher.connection.state; } It works but it only set the initial connection status which is connecting and…
Fred II
  • 581
  • 2
  • 11
  • 23
0
votes
1 answer

Can't connect to pusher with react-native

Hello i am new to react native and im trying to create a realtime chat application using pusher-js so i installed the package npm install pusher-js @react-native-community/netinfo and put the following code in my useEffect useEffect(() => { //…
0
votes
1 answer

How can I broadcast a message event to all members of a channel in Pusher?

I'm trying to design a chat app using Pusher and Angular. I've managed to set up the channel and send messages. However, the message event broadcasts to every client except the sender. How do I broadcast to ALL members of the channel including the…
F. Krovinsky
  • 9
  • 1
  • 4