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
2 answers

Android Background Service disconnects after minutes

I'm trying to build a background service for notifications to run and show notifications even if the app is not in memory but the issue, after a period of time the broadcast service i'm using, disconnects after like 8 minutes and i'm not able to…
0
votes
1 answer

Pusher Chatkit Android get status readout of specified room

I'm trying to integrate pusher chatkit and I'm curious of a couple of things: 1) is there a way to get a readout of the status of a specific room similar to when you join a room...or get denied from a room. Here's an example below when you join a…
Cflux
  • 1,423
  • 3
  • 19
  • 39
0
votes
0 answers

Laravel websockets + pusher-js - UI side connected but doesn't get data

problem : socket connects successfully and its status is 101. but doesn't get any data on event call. note : everything works perfectly on local server. Alt-Svc: h3-24=":8443"; ma=86400, h3-23=":8443"; ma=86400 CF-Cache-Status: DYNAMIC CF-RAY:…
Milad Heidari
  • 191
  • 4
  • 7
0
votes
0 answers

Laravel + Vue.js Broadcasting Echo join property undefined

I am using Channel broadcasting with laravel and vue.js in order to have all user online and offline. I have installed the package correctly and configured pusher params according to laravel documentation. In my vue component I wrote following to…
sodskat
  • 137
  • 2
  • 12
0
votes
1 answer

Pusher not triggering event is not working Laravel

I am trying to trigger a pusher event but it's not working. class SendWaitingForRedirect implements ShouldBroadcast { use Dispatchable, InteractsWithSockets, SerializesModels; public $message; public function __construct($message) …
Jatin Raikwar
  • 406
  • 5
  • 17
0
votes
2 answers

React props change more than expected

I have a react App that passes to a SlotMachine component when it senses an API hit (using Pusher for publish-subscribe). It should only rotate() once per API hit, however, as you can see in my output it invokes rotate() multiple times and says…
Kyle Calica-St
  • 2,629
  • 4
  • 26
  • 56
0
votes
0 answers

Laravel websocket in subdirectory

please can you help me. My scheme of files is: var/www/turnerosac --> files base projects /var/www/html/turnerosac --> files public When executing the command: /usr/bin/php /var/www/turnerosac/artisan websocket:serve Throw the following message in…
0
votes
1 answer

Close support chat after connection timeout with Laravel Echo

I'm building a support chat application. It's built on Laravel Echo through Pusher.js. There are two sides - support/admin and client. When a client starts a chat, support can accept it and they can chat together. It's working like it should be, but…
Patrik Krehák
  • 2,595
  • 8
  • 32
  • 62
0
votes
1 answer

create private channel auth flow in php for pusher

I want to implement a private messaging chat using pusher PHP/JS API. I need some help to setup a private channel and an auth endpoint with php, it's not clear from the docs if there is a default way to manage the users authentication for private…
jihuuNI
  • 551
  • 2
  • 5
  • 17
0
votes
1 answer

How can you get a list of all subscribed presence or public channels?

Is there a way of getting a list of all channels (or channel names) the current Echo instance is subscribed to?
0
votes
1 answer

How to authenticate users to multiple channels

I am building a php/javascript application which allows each individual user to connect to their private channel, e.g., private-channel.userID The user is authenticated through the following authentication endpoints, see the code below. However,…
GoQuestion
  • 71
  • 2
  • 9
0
votes
1 answer

Trigger event on pusher (React native)

I'm trying to trigger an event with pusher but returns Error. I can listen but when I try to trigger doesn't work, this how I'm trying: const channel = pusherClient.subscribe('channel'); channel.trigger('event', { name: 'John', age: 20 });
0
votes
1 answer

Pusher - how do I greet a new user?

I am trying to build a Pusher-driven app (Angular + node.js). I am holding an in-memory db (array of objects that are subject to CRUD). What would be the good practice to send the list of objects/ids to a new user? Say, I have initialization in…
user776686
  • 7,933
  • 14
  • 71
  • 124
0
votes
1 answer

Same message in sender and receiver chat in pusher.js php

I am new to PusherJS and developing a real-time chat app using PHP. Everything working fine but when I press enter to send message, it append it in sender's box and into receiver's box also. How I can differentiate it on the basis of session or…
user11262049
0
votes
1 answer

Laravel broadcast doesnt get triggered

Trying to send user list to specific users after a friend requests been made.using pusher,vuejs 2.6,laravel 5.7 but in my function the broadcast its not getting triggered when i do dd in channel it works! also in the construct function. so im kind…
Pc Monk
  • 75
  • 2
  • 4
  • 24