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

Laravel not listening to listening to broadcast events? Vue/Echo/Pusher

I'm implementing a Vue messaging component inside my laravel application. Messages are being successfully sent to Pusher as seen in the debug console but I've been struggling for three days to get laravel to listen so users on the same private…
Xarga
  • 1
  • 2
0
votes
1 answer

how to work with laravel-chat app in pusher.js if I have no internet connection

Lately, my internet connection is going sour and sometimes I get no internet, can I work with like resuming this chat-feature, will I be able to write one without an internet connection …
TheBAST
  • 2,680
  • 10
  • 40
  • 68
0
votes
1 answer

is there way to use realtime event handling like pusher for local network?

I'm working on a project for an organization which has a local network and the servers don't have access to the internet. I new to Vue and real-time events. So is there a way to use services like pusher or socket.io offline? there is this package…
B nM
  • 369
  • 1
  • 5
  • 17
0
votes
3 answers

Laravel Echo + Pusher subscription_error on private channel

I can't manage to get echo and pusher working when using private channels, googled for two days and found nada. What seems to be happening is some sort of problem with the authentication (I'm using Laravel basic Auth) cause I can subscribe to public…
Sylar
  • 41
  • 1
  • 10
0
votes
0 answers

Graph not showing Data

using this tutorial Pusher for realtime voting app, based on ionic. Once you click on Submit Vote, it woundn't show any thing. ionic port : 8100, server port : 4000 Its might cause because of different ports? Update Just realize its has been blocked…
faisaljanjua
  • 886
  • 2
  • 13
  • 28
0
votes
1 answer

Error callback using echo-laravel and react

I'm trying to add a callback for a pusher:subscription_error with echo-laravel. The client is done in react. The broadcaster is Pusher and I subscribe to a channel like this: echo.private('User.' + this.props.user.id).listen("NewMessage",…
Joseph Arnaud
  • 95
  • 1
  • 7
0
votes
1 answer

Pausing a block of code from being run in google cloud functions/Dialogflow

I am using pusher to listen to a particular event being sent from another server. I have successfully bind to the event but my problem is the code moves past the binding and executes the rest of the code. I have tried using Await but that doesn't…
0
votes
1 answer

consume events in the right order

Im using channel's of pusher in a Laravel application. So when im fired an event from my controller this is received to my client, and with the pusher function I add some text with this lib https://github.com/albburtsev/jquery.typist on my front…
JahStation
  • 893
  • 3
  • 15
  • 35
0
votes
1 answer

socket.io vs pusher, which one is better to use with laravel

i am just new into this concepts about sockets and i am so confused.Firstly i found that i can use pusher for realtime messages but it limits concurrent connections 100 and number of messages to send..then what about socket.io, does it have some…
shirish
  • 3
  • 1
  • 6
0
votes
2 answers

Laravel Echo + Pusher: request to broadcasting/auth returns login page

I updated my application from 5.2 to 5.3 to broadcast notifications with Pusher, but when pusher try to authenticate current logged in user over broadcasting/auth, I got an error: Pusher : No callbacks on private-App.Models.Client.9 for…
Mostafa Attia
  • 327
  • 5
  • 13
0
votes
1 answer

Error Echo is not Defined

I'm using pusher and have been trying to configure Laravel Echo as guided in the docs. I have added the following code to bootstrap.js import Echo from 'laravel-echo' window.Pusher = require('pusher-js'); window.Echo = new Echo({ broadcaster:…
gthuo
  • 2,376
  • 5
  • 23
  • 30
0
votes
1 answer

why 500 - internal server error?

const form = document.getElementById('vote-form') form.addEventListener('submit',e => { let choice = document.querySelector('input[name=os]:checked').value; let data = {os: choice}; fetch("http://localhost:3000/poll",{ // *** getting error…
user9445158
0
votes
0 answers

Pusher: Websockets callback function

I've a problem with this piece of code. I'm new in js and I don't understand why I only can print the latest pair each time I receive a new message throughout the websocket in the callback function. It prints "ethbtc" every time. var hashtable =…
user9357189
0
votes
1 answer

How to run Laravel queue commands on shared hosting?

I have made a notifications system in my laravel project. in development mode it works perfectly, but on shared hosting it doesn't because i couldn't run queue:listen to proccess the queued notifications. Right now i use 000webhost free account to…
walid
  • 299
  • 2
  • 4
  • 19
0
votes
1 answer

real time chat in laravel and vue js using pusher?

Hi everyone please guide me how can i use pusher in real time chat system . pusher is installed in my app and working for real time notification but i want to add pusher in my messages . My message system is working fine . Please add pusher code…
Muhammad Haroon
  • 75
  • 1
  • 1
  • 7
1 2 3
13
14